View source: R/sparsify_dynamics.R
sparsify_dynamics | R Documentation |
Sparsification function based on sequential thresholded least-squares as shown in the SINDy algorithm in "Discovering governing equations from data: Sparse identification of nonlinear dynamical systems" (Brunton, Proctor, & Kutz, 2016).
sparsify_dynamics(Theta, dXdt, lambda, loops = 1)
Theta |
A matrix of candidate functions. |
dXdt |
A matrix of first order derivatives of the variables of interest with respect to time. |
lambda |
A numeric value; sparsification threshold. |
loops |
An integer; number of times sequential thresholded least-squares procedure is repeated. |
A matrix of sparse coefficients.
Brunton, S. L., Proctor, J. L., & Kutz, J. N. (2016). Discovering governing equations from data by sparse identification of nonlinear dynamical systems. Proceedings of the National Academy of Sciences, 113(15), 3932-3937.
## Not run:
sparsify_dynamics(Theta, dXdt, lambda, n)
sparsify_dynamics(Theta, dXdt, .005, 10)
sparsify_dynamics(pool_data(yIn, 15, 5, TRUE), dXdt, .1, 1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.