neuropsychology / NeuroKit

NeuroKit2: The Python Toolbox for Neurophysiological Signal Processing
https://neuropsychology.github.io/NeuroKit
MIT License
1.58k stars 421 forks source link

Membership functions for fuzzy entropy #1050

Closed DongCheninmuenster closed 1 hour ago

DongCheninmuenster commented 9 hours ago

Description

I have added membership functions to the fuzzy entropy algorithm by modifying the parameters in the entropy_sample function. Although I'm still a beginner in Python, the good news is that it works as expected. I compared my code and results with Azami's MATLAB version to verify this.

However, I believe there may be a more efficient approach, especially by improving the complexity_tolerance function. I'm continuing to work on implementing this optimization.

Additionally, I have modified the core algorithm of fuzzy entropy by using block matrix, which helps reduce memory usage.

welcome[bot] commented 9 hours ago

Thanks for opening this pull request! We'll make sure it's perfect before merging 🤗 force Make sure to read the contributing guide. Also, if you think that your contribution is worthy of it, you can consider adding yourself to the Contributors list (feel free to ask us if you have any doubts).