Matlab : Plot of entropy vs digitized code length

前端 未结 1 792
故里飘歌
故里飘歌 2021-01-27 15:13

[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

1条回答
  •  鱼传尺愫
    2021-01-27 15:59

    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.

    0 讨论(0)
提交回复
热议问题