getVal: Get the vector of Kc/c values from the chaos01.res object.

Description Usage Arguments Value References See Also Examples

View source: R/getval.R

Description

This function allows easy extraction of Kc/c values from the chaos01.res object.

Usage

1
getVal(x, vars = "both")

Arguments

x

the object of "chaos01.res" class, produced by testChaos01 function when parameter out = "TRUE". Subset the output of the function to get the results for the concrete c. See the example.

vars

list/vector define what should be plotted.

  • "both" - both variables "Kc" and "c" will be returned in data.frame

  • "Kc" - vector of "Kc" values will be returned

  • "c" - vector of "c" values will be returned

Default is "both").

Value

Vector of Kc or c values, or data.frame including both vectors if vars = "both".

References

Gottwald G.A. and Melbourne I. (2004) On the implementation of the 0-1 Test for Chaos, SIAM J. Appl. Dyn. Syst., 8(1), 129–145.

See Also

testChaos01

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
vec.x <- gen.logistic(mu = 3.55, iter = 2000)

#Kc for each value of c
res2 <- testChaos01(vec.x, out = TRUE)

results <- getVal(res2, vars = "both")
print(head(results))

#Get results of 0-1 test for Chaos when out = TRUE
K <- median(getVal(res2, vars = "Kc"))

Chaos01 documentation built on Aug. 21, 2019, 5:10 p.m.

Related to getVal in Chaos01...