Library
SparseIdentification.CompoundBasis — TypeCompoundBasis(bases)Holds a basis composed of several different basis functions, e.g. polynomials of vardatag degree and/or trigonometric functions.
SparseIdentification.HamiltonianSINDyVectorField — Methodwrapper function for generalized SINDY hamiltonian gradient. Needs the output of fθ_sparse to work! It is in a syntax that is suitable to be evaluated by a loss function for optimization
SparseIdentification.PolynomialBasis — TypePolynomialBasis(p)Holds polynomials of degree p.
SparseIdentification.TrigonometricBasis — TypeTrigonometricBasis(n)Holds the basis functions [sin(kx), cos(kx)] for 1 ≤ k ≤ n.
SparseIdentification.calculate_nparams — Methodreturns the number of required parameters depending on whether there are trig basis or not
SparseIdentification.evaluate — Functionevaluate(data, basis)Evaluates a data set on all basis functions in basis.
SparseIdentification.hamilGrad_func_builder — Methodreturns a function that can build the gradient of the hamiltonian
SparseIdentification.hamil_trig — Methodcollects and sums polynomial and trignometric combinations of basis
SparseIdentification.hamiltonian — Methodcollects and sums only polynomial combinations of basis
SparseIdentification.hamiltonian_poly — Methodmakes polynomial combinations of basis
SparseIdentification.sparsify — Methodsequential least squares