raphaelvallat / yasa

YASA (Yet Another Spindle Algorithm): a Python package to analyze polysomnographic sleep recordings.
https://raphaelvallat.com/yasa/
BSD 3-Clause "New" or "Revised" License
417 stars 113 forks source link

Allow relative threshold for SWS + disable amp_pos & amp_neg #11

Closed raphaelvallat closed 4 years ago

raphaelvallat commented 4 years ago

I realized that this can already be done without any modifications to the source code. I've now added a section in the Jupyter Notebook on slow-waves detection to illustrate how to use z-score or percentile threshold to detect slow-waves. See 1527dedb049d63b10dc15ebf7fffa67d312038df