Skip to content

New xcorr convenience features #293

@ssfrr

Description

@ssfrr

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 bias
  • normalize::Bool - normalize by sqrt(sum(x->x^2, u)*sum(x->x^2, v)) to compensate for varying energies in signals
  • maxlag::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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions