force_csym

Change a vector so as it has the conjugate symetry proporty.

Namespace: dsp::fourier

Prototype

void force_csym(Vector<T> &X)

Parameters

XComplex vector (input and output parameter)

Description

Over-write the second half of the vector (which contain negative frequency bins), and also the imaginary part of the first element, and, if \(n\) is even, the middle element, so that the resulting vector is conjugate symetrical: \[ X_{N-k} = X_k^\star \]

Note
The inverse DFT of such a signal will necessarily be real.