<< Previous | Next >> | |
|
void fftrealinv( int * x, int N, int * blockexp );
Description
- Computes the 2
N
-point real sequence corresponding to theN
-point, positive-frequency complex spectrum in array x. TheN
-point, positive-frequency spectrum contained in arrayx
is replaced with its corresponding 2N
-point real sequence. The value ofblockexp
is increased by 1 each time arrayx
has to be scaled, to avoid arithmetic overflow. The value ofblockexp
is also decreased by log2N
to include the 1/N
factor in the definition of the inverse DFT.
- The function expects to find the real part of the fmax term in the imaginary part of the zero-frequency
X[0]
term (storedx[1]
).
- The 2
N
-point real sequence is stored in natural order. The zeroth element of the sequence is stored inx[0]
, the first element inx[1]
, and the kth element inx[k]
.
N
must be a power of 2 and between 4 and 1024. An invalidN
causes a RANGE exception.Parameters
- x
- Pointer to
N
-element array of complex fractions.
- N
- Number of complex elements in array
x
.
- blockexp
- Pointer to integer block exponent.
Library
- FFT.LIB
See also
- fftcplx, fftcplxinv, fftreal, hanncplx, hannreal, powerspectrum
Dynamic C Functions | << Previous | Next >> | rabbit.com |