Circular correlation (normalized) between two complex vectors.

Namespace: dsp::fourier

Prototype

auto ccorr(const Veccf &x, const Veccf &y=Veccf())

Parameters

xFirst vector
ySecond vector (if not specified, the auto-correlation is computed)

Returns

First vector: index of time lags \(n\) (that is \(0, 1, ..., N-1\)), second vector: \(c_n\).

Description

FFT-based computing of: \[ c_n = \frac{1}{N} \cdot \sum_{k=0}^{N-1} x_k y^{\star}_{k+n[N]},\ \ n=0\dots N-1 \]

See also

xcorr(), xcoorb()