[Tent Map][1] is a dynamical system that is discrete in time. Iterations of the map yields a time series.
The entropy of this system when discretized in 0/1 using a thr
You are saying that lambda
must be EXACTLY equal to log(2)
. When the entropy drops below log(2)
it skips over this value (for instance instead of exactly log(2) maybe an iteration is 0.69309 which is less). Try replacing the line
while(lambda ~=H)
with
tol=0.01;
while(~(abs(lambda-H)
this will mean that it quits whenever lambda
is close to H
(with in the tolerance tol
).
If your tol
is too small (try 0.001) an iteration would jump over it again and you would be back to the problem you had before.