-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Labels
Description
There are some commonly-used features that are useful when doing cross-correlations that we might want to add (maybe as keyword arguments to xcorr
):
demean::Bool
- subtract the mean from each before cross-correlating, which would otherwise add an offset biasnormalize::Bool
- normalize bysqrt(sum(x->x^2, u)*sum(x->x^2, v))
to compensate for varying energies in signalsmaxlag::Int
- specifying a maximum lag (often we care about lags shorter than our signals, and this allows less padding before the FFT, or fewer dot-products if doing it in the time-domain)unbiased::Bool
- compensate for the varying numbers of zeros during the cross-correlation, which otherwise adds a scale bias