theunissenlab/BioSoundTutorial

how to change the codes for time frequency demean in mps?

Opened this issue · 0 comments

Hi,

I would like to remove the zero point of the time series by performing demean. In other words, I want to calculate the mean and subtract it from each data point before applying the MTF. This is to ensure that the mean frequency after the FFT is not zero. I have attempted to modify the code in sound.py, but it seems that the results are not changing consistently. Should I make changes to other scripts in order to properly perform demean?
image

Thank you!