pool_data: Data Pooling into the Matrix of Candidate Functions for SINDy...

View source: R/pool_data.R

pool_dataR Documentation

Data Pooling into the Matrix of Candidate Functions for SINDy Algorithm

Description

Pooling function for construction of the library of potential right hand-side candidate functions as shown in the SINDy algorithm in "Discovering governing equations from data: Sparse identification of nonlinear dynamical systems" (Brunton, Proctor, & Kutz, 2016).

Usage

pool_data(yIn, nVars, polyOrder, useSine)

Arguments

yIn

A matrix/data frame of time-dependent variables.

nVars

An integer that indicates the number of variables.

polyOrder

An integer from 0 to 5 indicating the highest degree of polynomials included in the matrix of candidate functions.

useSine

A logical value indicating whether sine and cosine functions of variables should be added to the library of potential candidate functions. If TRUE, candidate function matrix is augmented with sine and cosine functions of integer multiples 1 through 10 of all the variables in yIn.

Value

A matrix of candidate functions.

References

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.

Examples

## Not run: 
pool_data(yIn, nVars, polyOrder, useSine)
pool_data(yIn, 15, 5, TRUE)
pool_data(yIn, 3, 1, 0)

## End(Not run)

RobertGM111/havok documentation built on July 8, 2023, 8:23 p.m.