19 #ifndef INCLUDE_FFTWINDOW_H 20 #define INCLUDE_FFTWINDOW_H 23 #define _USE_MATH_DEFINES 29 #define M_PI 3.14159265358979323846 43 void apply(
const std::vector<Real>& in, std::vector<Real>* out);
44 void apply(
const std::vector<Complex>& in, std::vector<Complex>* out);
53 return 1.0 - 1.93 *
cos((2.0 *
M_PI * i) / n) + 1.29 *
cos((4.0 *
M_PI * i) / n) - 0.388 *
cos((6.0 *
M_PI * i) / n) + 0.03222 *
cos((8.0 *
M_PI * i) / n);
59 return (2.0 / (n - 1.0)) * ( (n - 1.0) / 2.0 - fabs(i - (n - 1.0) / 2.0)) * 2.0;
65 return (0.35875 - 0.48829 *
cos((2.0 *
M_PI * i) / n) + 0.14128 *
cos((4.0 *
M_PI * i) / n) - 0.01168 *
cos((6.0 *
M_PI * i) / n)) * 2.79;
71 return (0.54 - 0.46 *
cos((2.0 *
M_PI * i) / n)) * 1.855;
77 return (0.5 - 0.5 *
cos((2.0 *
M_PI * i) / n)) * 2.0;
86 #endif // INCLUDE_FFTWINDOWS_H
static Real rectangle(Real, Real)
Fixed< IntType, IntBits > cos(Fixed< IntType, IntBits > const &x)
static Real flatTop(Real n, Real i)
void * create(QString type)
static Real blackmanHarris(Real n, Real i)
static Real hamming(Real n, Real i)
static Real bartlett(Real n, Real i)
static Real hanning(Real n, Real i)
std::vector< float > m_window
std::complex< Real > Complex