![]() |
|
| << Previous | Next >> | |
| | |
void fftreal( int * x, int N, int * blockexp );
Description
- Computes the
N-point, positive-frequency complex spectrum of the 2N-point real sequence in arrayx. The 2N-point real sequence in arrayxis replaced with itsN-point positive-frequency complex spectrum. The value ofblockexpis increased by 1 each time arrayxhas to be scaled, to avoid arithmetic overflow.
- The imaginary part of the X[0] term (stored in x[1]) is set to the real part of the fmax term.
- 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 in x[k].
Nmust be a power of 2 and lie between 4 and 1024. An invalidNcauses a RANGE exception.Parameters
- x
- Pointer to 2
N-point sequence of real fractions.
- N
- Number of complex elements in output spectrum
- blockexp
- Pointer to integer block exponent.
Library
- FFT.LIB
See also
- fftcplx, fftcplxinv, fftrealinv, hanncplx, hannreal, powerspectrum
| Dynamic C Functions | << Previous | Next >> | rabbit.com |