testP: Periodic solution test

Description Usage Arguments Value Author(s) See Also Examples

View source: R/testP.R

Description

Tests if a trajectory is periodic.

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#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 Feb. 18, 2020, 5:08 p.m.