neuromodulation / py_neuromodulation

Real-time analysis of intracranial neurophysiology recordings.
https://neuromodulation.github.io/py_neuromodulation/
MIT License
46 stars 11 forks source link

Normalizations starting with first sample create huge outlier #265

Closed timonmerk closed 1 year ago

timonmerk commented 1 year ago

This has a specific effect for in-burst since the distribution changes

timonmerk commented 1 year ago

There is a bug in the nm_burst that the previous n seconds are not used https://github.com/neuromodulation/py_neuromodulation/blob/fa4fd842c2ba480d69945eacb6a5fd2c8e8ec9af/py_neuromodulation/nm_bursts.py#L102