Estimates the maximum Lyapunov exponent using the algorithm described by Kantz on the TISEAN reference page:
http://www.mpipks-dresden.mpg.de/~tisean/Tisean_3.0.1/docs/chaospaper/citation.html
Input
Must be realvector.
Parameters
Maximum embedding dimension to use [default = 2].
Minimum embedding dimension to use [default = 2].
Delay used [default = 1].
Minimum length scale to search neighbors [default = 1e-3].
Maximum length scale to search neighbors [default = 1e-2].
Number of length scales to use [default = 5].
Reference points to use [all].
Number of iterations in time [default = 50].
’theiler window’ [default = 0].
Switch
Prints information about the current length scale at runtime.
Output
The output is a struct array of size:
'ecount' x ('mmax' - 'mmin' + 1)
It has the following fields:
eps
- holds the epsilon for the exponent
dim
- holds the embedding dimension used in exponent
exp
- contains the exponent data. It consists of 3 columns:
See also: demo lyap_k, lyap_r, lyap_spec.
Algorithms
The algorithms for this functions have been taken from the TISEAN package.
The following code
idx = (1:2500).'; in = sin (idx./360) + cos (idx ./ 180); mmax = 20; res = lyap_k (in, 'mmin',2,'mmax',mmax,'d',6,'s',400,'t',500); cla reset hold on for j=2:mmax plot (res(1,j-1).exp(:,1),res(1,j-1).exp(:,2),'r'); endfor axis tight xlabel ("t [flow samples]"); ylabel ("S(eps, embed, t)"); hold off
Produces the following figure
Figure 1 |
---|
Package: tisean