TomasLenc / acf_tools

Utilities for working with autocorrelation to capture periodicity in a signal.
GNU General Public License v3.0
2 stars 0 forks source link

Acf flims #10

Closed TomasLenc closed 1 year ago

TomasLenc commented 1 year ago

Adding an option to limit freq range for ACF computation.

I have put min_freq and max_freq used for 1/f fit into a single parameter (an 2-element array with frequency limits for 1/f fitting) called ap_fit_flims. This is much more descriptive.

Then I added another parameter that can be used to restrict the frequency range used for ACF compuation from complex spectra. All frequencies outside of the range defined by the acf_flims parameter are going to be zeroed out.

So this is a version-breaking change because I am renaming parameters! All existing code using min_freq and max_freq parameters will have to be updated!

cedlenoir commented 1 year ago

Here is the results using different frequency ranges for audio (0-10 Hz) and vibro (0-25 Hz). It seems to work well ;-) image

For the diagnostic plots I get this example, but the plots are frozen (maybe from my side) and I cannot properly read them due to scale. image