if (FALSE) {
x=henon(n.sample = 15000, n.transient = 100, a = 1.4, b = 0.3,
start = c(0.78,0.8165), do.plot = FALSE)$x
cd=corrDim(time.series=x,
min.embedding.dim=2,max.embedding.dim=9,
corr.order=2,time.lag=1,
min.radius=0.05,max.radius=1,
n.points.radius=100,
theiler.window=20,
do.plot=TRUE)
use.col = c("#999999", "#E69F00", "#56B4E9", "#009E73",
"#F0E442", "#0072B2", "#D55E00", "#CC79A7")
se=sampleEntropy(cd,do.plot=TRUE,col=use.col,
type="l",xlim=c(0.1,1),
add.legend=T)
se.est = estimate(se,
regression.range = c(0.4,0.6),
use.embeddings = 6:9,col=use.col,type="b")
print(se.est)
cat("Expected K2 = ",0.325," Estimated = ",mean(se.est),"\n")
}
Run the code above in your browser using DataLab