Test the numerical integrability of models (of polynomial structure) possibly obtained with function autoGPoMoSearch, and classify these models as divergent, Fixed Points, Periodic or not classificable (potentially chaotic).
autoGPoMoTest(data, tin = NULL, dt = NULL, nVar = nVar, dMax = dMax,
show = 1, verbose = 1, allKL = allKL, IstepMin = 10,
IstepMax = 10000, tooFarThreshold = 4, LimCyclThreshold = 0,
fixedPtThreshold = 1e-08, method = "lsoda")
Input Time series: Each column corresponds to one input variable.
Input date vector which length should correspond to the variables of the input data (same number of lines).
The time sampling of the input series.
The model dimension expected. This parameter will be
deduced from the input data (series
) if series
is
a matrix. If series
is a vector, the expected dimension nVar
should be provided.
Maximum degree of the polynomial functions allowed
in the model (see poLabs
).
Indicates (2) or not (0-1) the algorithm progress
Gives information (if set to 1) about the algorithm progress and keeps silent if set to 0
A list of the all the models $mToTest1
,
$mToTest2
, etc. to be tested. Each model is provided
as a matrix.
Minimum step of integration at the beginning of the analysis (by default IstepMin=10).
Maximum step of integration before stopping the analysis, with the interface this value can be changed during the analysis
Divergence threshold, maximum times number that the model can be greater than the data standard deviation, without being removed from the analysis
Limit cycle threshold. Minimum neighbors distance between two integration steps, without being removed from the analysis
Limit cycle threshold. Minimum neighbors distance between two integration steps, without being removed from the analysis
The integration technique used for the numerical integration. Default is 'lsoda'. Others such as 'rk4' or 'ode45' may also be used. See package deSolve for details.
A list containing:
$okMod
A vector classifying the models: diverging models (0), periodic
models of period-1 (-1), unclassified models (1).
$coeff
A matrix with the coefficients of one selected model
$models
A list of all the models to be tested $mToTest1
,
$mToTest2
, etc. and all selected models $model1
, $model2
, etc.
$tout
The time vector of the output time series (vector length
corresponding to the longest numerical integration duration)
$stockoutreg
A list of matrices with the integrated trajectories
(variable X1
in column 1, X2
in 2, etc.) of all the models $model1
, $model2
, etc.
# NOT RUN {
#Examples
data('RosYco')
# Structure choice
data('allToTest')
outGPT <- autoGPoMoTest(RosYco, nVar= 3, dMax = 2, dt = 1/125, show=1,
allKL = allToTest, IstepMax = 60)
# }
Run the code above in your browser using DataLab