qm-dsp 1.8
FFT.h
Go to the documentation of this file.
1/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2
3/*
4 QM DSP Library
5
6 Centre for Digital Music, Queen Mary, University of London.
7*/
8
9#ifndef FFT_H
10#define FFT_H
11
12class FFT
13{
14public:
20 FFT(int nsamples);
21 ~FFT();
22
37 void process(bool inverse,
38 const double *realIn, const double *imagIn,
39 double *realOut, double *imagOut);
40
41private:
42 class D;
44};
45
47{
48public:
56 FFTReal(int nsamples);
57 ~FFTReal();
58
68 void forward(const double *realIn,
69 double *realOut, double *imagOut);
70
81 void forwardMagnitude(const double *realIn, double *magOut);
82
97 void inverse(const double *realIn, const double *imagIn,
98 double *realOut);
99
100private:
101 class D;
103};
104
105#endif
Definition FFT.h:47
void forwardMagnitude(const double *realIn, double *magOut)
Carry out a forward real-to-complex transform of size nsamples, where nsamples is the value provided ...
Definition FFT.cpp:190
~FFTReal()
Definition FFT.cpp:178
void forward(const double *realIn, double *realOut, double *imagOut)
Carry out a forward real-to-complex transform of size nsamples, where nsamples is the value provided ...
Definition FFT.cpp:184
void inverse(const double *realIn, const double *imagIn, double *realOut)
Carry out an inverse real transform (i.e.
Definition FFT.cpp:196
D * m_d
Definition FFT.h:102
Definition FFT.cpp:23
Definition FFT.h:13
D * m_d
Definition FFT.h:43
~FFT()
Definition FFT.cpp:85
void process(bool inverse, const double *realIn, const double *imagIn, double *realOut, double *imagOut)
Carry out a forward or inverse transform (depending on the value of inverse) of size nsamples,...
Definition FFT.cpp:91