testP: Periodic solution test

View source: R/testP.R

testPR Documentation

Periodic solution test

Description

Tests if a trajectory is periodic.

Usage

testP(data, wthresh = 0.1, fxPtThresh = 1e-04, show = 0)

Arguments

data

Input Time series: Each column is one time series that corresponds to one variable.

wthresh

Threshold used to detect the limit cycle.

fxPtThresh

Threshold used to detect fixed points.

show

Provide (2) or not (0-1) visual output during the running process.

Value

periodic An integer classifying the models: diverging or unclassified trajectory (0), period-1 trajectory (-1), period-2 trajectory (-2) and fixed Point (2).

Author(s)

Sylvain Mangiarotti, Flavie Le Jean

See Also

autoGPoMoTest, gPoMo

Examples

#Example
# Load data:
data('P1FxChP2')
# Test a period-1 trajectory
testP(P1FxChP2[,1:2], wthresh=0.1, fxPtThresh = 1e-6, show=0)
# Test a Fixed Point trajectory
testP(P1FxChP2[,3:4], wthresh=0.1, fxPtThresh = 1e-6, show=0)
# Test a chaotic trajectory
testP(P1FxChP2[,5:6], wthresh=0.1, fxPtThresh = 1e-6, show=0)
# Test a period-2 trajectory
testP(P1FxChP2[,7:8], wthresh=0.1, fxPtThresh = 1e-6, show=0)


GPoM documentation built on July 9, 2023, 6:23 p.m.