Skip to content

Removing a vector for approximate entropy #5

@Tam-Pham

Description

@Tam-Pham

Hi @raphaelvallat I have been finding your packages and your guides extremely helpful!

I'm currently working on NeuroKit with @DominiqueMakowski and we are looking at implementing the functions for different entropy. I have a small question regarding your implementation below of ApEn:

def _app_samp_entropy(x, order, metric='chebyshev', approximate=True):

if approximate:
        emb_data1 = _emb_data1
    else:
        emb_data1 = _emb_data1[:-1]

It seems like here the last vector in the embedded time-series is removed if approximate is False (sample entropy). However, I couldn't find the rationale for this particular removal. Would really appreciate it if you could point me to the right direction.

Many thanks!
Tam

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions