average magnitude difference function

2 thoughts on “average magnitude difference function

    • eta_min and eta_max define the search range in lags. In the code above, you are only looking for minima between those boundaries, so you will only detect frequencies above 50 Hz or below 2000 Hz. If you don’t want any limits, you can set eta_min to 0 and eta_max to K.

Leave a Reply

Your email address will not be published. Required fields are marked *