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.
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.