Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A problem about calculating sample entropy #1

Open
Q-Qing opened this issue Dec 8, 2021 · 1 comment
Open

A problem about calculating sample entropy #1

Q-Qing opened this issue Dec 8, 2021 · 1 comment

Comments

@Q-Qing
Copy link

Q-Qing commented Dec 8, 2021

I think there is a problem in calculating B of sample entropy. Variable xmi and xmi should be the same, which both contain N-m templates of length m. As stated in the original paper, sample entropy only considers the first N - m vectors of length m, ensuring that, xm(i) and xm+1(i) were defined.

@liuchaojie85
Copy link

I think 'B = np.sum([np.sum(np.abs(xmii-xmj).max(axis=1) <= r)-1 for xmii in xmi])' is revised ‘B = np.sum([np.sum(np.abs(xmii-xmj).max(axis=1) <= r)-1 for xmii in xmj])’

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants