Edinburgh Speech Tools  2.1-release
fft.cc File Reference
#include <cmath>
#include "sigpr/EST_fft.h"
#include "EST_math.h"
#include "EST_error.h"
Include dependency graph for fft.cc:

Go to the source code of this file.

Macros

#define PI8   0.392699081698724 /* PI / 8.0 */
 
#define RT2   1.4142135623731 /* sqrt(2.0) */
 
#define IRT2   0.707106781186548 /* 1.0/sqrt(2.0) */
 
#define signum(i)   (i < 0 ? -1 : i == 0 ? 0 : 1)
 
#define l15   l[0]
 
#define l14   l[1]
 
#define l13   l[2]
 
#define l12   l[3]
 
#define l11   l[4]
 
#define l10   l[5]
 
#define l9   l[6]
 
#define l8   l[7]
 
#define l7   l[8]
 
#define l6   l[9]
 
#define l5   l[10]
 
#define l4   l[11]
 
#define l3   l[12]
 
#define l2   l[13]
 
#define l1   l[14]
 

Functions

int slowFFT (EST_FVector &real, EST_FVector &imag)
 Basic in-place FFT. More...
 
int slowIFFT (EST_FVector &real, EST_FVector &imag)
 Basic inverse in-place FFT. More...
 
int energy_spectrum (EST_FVector &real, EST_FVector &imag)
 
int power_spectrum_slow (EST_FVector &real, EST_FVector &imag)
 Power spectrum using the slowFFT function. More...
 
int power_spectrum (EST_FVector &real, EST_FVector &imag)
 Power spectrum using the fastFFT function. More...
 
int fastFFT (EST_FVector &invec)
 Fast FFT An optimised implementation by Tony Robinson to be used in preference to slowFFT. More...
 
int fastlog2 (int n)
 

Macro Definition Documentation

#define PI8   0.392699081698724 /* PI / 8.0 */

Definition at line 47 of file fft.cc.

#define RT2   1.4142135623731 /* sqrt(2.0) */

Definition at line 48 of file fft.cc.

#define IRT2   0.707106781186548 /* 1.0/sqrt(2.0) */

Definition at line 49 of file fft.cc.

#define signum (   i)    (i < 0 ? -1 : i == 0 ? 0 : 1)

Definition at line 254 of file fft.cc.

#define l15   l[0]
#define l14   l[1]
#define l13   l[2]
#define l12   l[3]
#define l11   l[4]
#define l10   l[5]
#define l9   l[6]
#define l8   l[7]
#define l7   l[8]
#define l6   l[9]
#define l5   l[10]
#define l4   l[11]
#define l3   l[12]
#define l2   l[13]
#define l1   l[14]

Function Documentation

int energy_spectrum ( EST_FVector real,
EST_FVector imag 
)

Definition at line 197 of file fft.cc.