gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
RealFFT.H
Go to the documentation of this file.
1 /* Copyright 2000-2018 Matt Flax <flatmax@flatmax.org>
2  This file is part of GTK+ IOStream class set
3 
4  GTK+ IOStream is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  GTK+ IOStream is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You have received a copy of the GNU General Public License
15  along with GTK+ IOStream
16 */
17 #ifndef REALFFT_H_
18 #define REALFFT_H_
19 
20 #include "fft/FFTCommon.H"
21 #include "fft/RealFFTData.H"
22 
24 class RealFFT {
26  fftw_plan fwdPlan, invPlan;
27 
29  void createPlan(void);
30 
32  void destroyPlan(void);
33 
34 protected:
37 public:
39  RealFFT(void);
40 
44  RealFFT(RealFFTData *d);
45 
47  virtual ~RealFFT(void);
48 
50  void switchData(RealFFTData *d);
51 
53  void switchData(RealFFTData &d);
54 
56  void fwdTransform();
57 
59  void invTransform();
60 };
64 #endif // REALFFT_H_
void createPlan(void)
Method to create the plans.
Definition: RealFFT.C:19
fftw_plan invPlan
Definition: RealFFT.H:26
void invTransform()
Inverse transform the data (out to in)
Definition: RealFFT.C:66
fftw_plan fwdPlan
The fwd/inv plans.
Definition: RealFFT.H:26
RealFFTData * data
The pointer to the relevant data.
Definition: RealFFT.H:36
virtual ~RealFFT(void)
fft deconstructor
Definition: RealFFT.C:45
class RealFFTData controls and manipulates fft data
Definition: RealFFTData.H:24
void fwdTransform()
Forward transform the data (in to out)
Definition: RealFFT.C:59
RealFFT(void)
fft init ... don&#39;t forget to associate data using switchData
Definition: RealFFT.C:34
void switchData(RealFFTData *d)
Use this to change associated fft data (for fft&#39;ing)
Definition: RealFFT.C:49
class RealFFT controls fftw plans and executes fwd/inv transforms
Definition: RealFFT.H:24
void destroyPlan(void)
Method to destroy the plans.
Definition: RealFFT.C:27
gtkIOStream: /tmp/gtkiostream/include/fft/RealFFT.H Source File
GTK+ IOStream  Beta