fftlib.h

来自「Fast Fourier Transform algorithm for lab」· C头文件 代码 · 共 40 行

H
40
字号
/*============================================================================ 
	FFTLib.H  -  Murphy McCauley  
	Derived from Don Cross's Fourier.H	 
 
	Contains prototypes for use with FFT.LIB. 
	For info on what they actually do -- check the corresponding 
	prototypes in Fourier.h. 
 
	08/01/99 
============================================================================*/ 
 
/* You may need to uncomment this next line. */ 
//#include  
 
/* 
** fftDouble() and fftFloat() attempt to load FFT.DLL and then call 
** fft_double() and fft_float().  They return FALSE if the library 
** couldn't be loaded and TRUE otherwise. 
*/ 
 
BOOL fftDouble ( 
    unsigned  NumSamples,          /* must be a power of 2 */ 
    int       InverseTransform,    /* 0=forward FFT, 1=inverse FFT */ 
    double   *RealIn,              /* array of input's real samples */ 
    double   *ImagIn,         /* array of input's imag samples */ 
    double   *RealOut,             /* array of output's reals */ 
    double   *ImagOut );      /* array of output's imaginaries */ 
 
 
BOOL fftFloat ( 
    unsigned  NumSamples,          /* must be a power of 2 */ 
    int       InverseTransform,    /* 0=forward FFT, 1=inverse FFT */ 
    float    *RealIn,              /* array of input's real samples */ 
    float    *ImaginaryIn,         /* array of input's imag samples */ 
    float    *RealOut,             /* array of output's reals */ 
    float    *ImaginaryOut );      /* array of output's imaginaries */ 
 
 
/* 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?