Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef FFT_H
00030 #define FFT_H
00031
00032 #include "Filter.h"
00033
00034 class FFT : public Filter
00035 {
00036 Q_OBJECT
00037
00038 public:
00039 FFT(ApplicationWindow *parent, Table *t, const QString& realColName, const QString& imagColName = QString(), int from = 1, int to = -1);
00040 FFT(ApplicationWindow *parent, QwtPlotCurve *c);
00041 FFT(ApplicationWindow *parent, QwtPlotCurve *c, double start, double end);
00042 FFT(ApplicationWindow *parent, Graph *g, const QString& curveTitle);
00043 FFT(ApplicationWindow *parent, Graph *g, const QString& curveTitle, double start, double end);
00044
00045 void setInverseFFT(bool inverse = true){d_inverse = inverse;};
00046 void setSampling(double sampling){d_sampling = sampling;};
00047 void normalizeAmplitudes(bool norm = true){d_normalize = norm;};
00048 void shiftFrequencies(bool shift = true){d_shift_order = shift;};
00049
00050 private:
00051 void init();
00052 void output();
00053 void output(const QString &text);
00054
00055 QString fftCurve();
00056 QString fftTable();
00057
00058 bool setDataFromTable(Table *t, const QString& realColName, const QString& imagColName = QString(), int from = 0, int to = -1);
00059
00060 double d_sampling;
00062 bool d_inverse;
00064 bool d_normalize;
00066 bool d_shift_order;
00067
00068 int d_real_col, d_imag_col;
00069 };
00070
00071 #endif