force_csym
Change a vector so as it has the conjugate symetry proporty.
Namespace: dsp::fourier
Prototype
void force_csym(Vector<T> &X)
Parameters
X | Complex 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:
- Note
- The inverse DFT of such a signal will necessarily be real.