bycycle-tools / bycycle

Cycle-by-cycle analysis of neural oscillations.
https://bycycle-tools.github.io/
Apache License 2.0
82 stars 21 forks source link

[BUG] Invert spike fit params #107

Closed ryanhammonds closed 3 years ago

ryanhammonds commented 3 years ago

This inverts the heights and alpha sign when fitting peak centered spikes. The signal is inverted and then gaussians the same as for trough-centered spikes. The resulting parameters are then inverted to reflect this.

This also adds demeaning for each spike separately, to adjust the baseline of simulated gaussians.