elise1993 / sysidHAVOK

This is a testbed for system identification and forecasting of dynamical systems using the Hankel Alternative View of Koopman (HAVOK) algorithm and Sparse Identification of Nonlinear Dynamics (SINDy). This code is based on the work by Brunton & Kutz (2022) and Yang et. al. (2022).
MIT License
1 stars 0 forks source link

Allow inclusion of true zeroes in the simulation data #3

Open elise1993 opened 10 months ago

elise1993 commented 10 months ago

When the state x is reconstructed from the delay coordinates v after simulation, the cross-diagonal averages of a Hankel matrix need to be computed. The current function "spdiags" for doing this does not allow for true zeroes to occur in the simulation which may be problematic for certain types of data/systems. To avoid this issue, we either need to rewrite the code without the use of "spdiags", or simply add very small constants (say 1e-12) to the zero data points from the simulation.

We can also continue using the edges of the Hankel matrix for reconstruction, but this may be less accurate.