pyeeg icon indicating copy to clipboard operation
pyeeg copied to clipboard

Possible error in petrosian fractal dimension calculation

Open kellylikesjelly opened this issue 1 year ago • 2 comments

Hello! I think there is a bug in the last line causing an error in pfd calculation, it should be numpy.log10(n / (n+0.4*N_delta)). Pls let me know if I made a mistake. Thanks :))

Screenshot 2022-07-12 151915

kellylikesjelly avatar Jul 12 '22 07:07 kellylikesjelly

What do you think it should be changed to?

forrestbao avatar Jul 12 '22 07:07 forrestbao

I think it should be changed to numpy.log10(n / (n+0.4xN_delta)). because in the current code its doing np.log10((n/n)+(0.4xn_delta))--> np.log10(1+0.4xn_delta) which is not the same as the equation in the paper. image

kellylikesjelly avatar Jul 25 '22 04:07 kellylikesjelly