#include <FFT.h>
Public Member Functions | |
FFT (ApplicationWindow *parent, Graph *g, const QString &curveTitle, double start, double end) | |
FFT (ApplicationWindow *parent, Graph *g, const QString &curveTitle) | |
FFT (ApplicationWindow *parent, Table *t, const QString &realColName, const QString &imagColName=QString(), int from=1, int to=-1) | |
void | normalizeAmplitudes (bool norm=true) |
void | setInverseFFT (bool inverse=true) |
void | setSampling (double sampling) |
void | shiftFrequencies (bool shift=true) |
Private Member Functions | |
QString | fftCurve () |
QString | fftTable () |
void | init () |
void | output (const QString &text) |
void | output () |
Performs the data analysis and takes care of the output. | |
bool | setDataFromTable (Table *t, const QString &realColName, const QString &imagColName=QString(), int from=0, int to=-1) |
Private Attributes | |
int | d_imag_col |
bool | d_inverse |
Flag telling if an inverse FFT must be performed. | |
bool | d_normalize |
Flag telling if the amplitudes in the output spectrum must be normalized. | |
int | d_real_col |
double | d_sampling |
bool | d_shift_order |
Flag telling if the output frequencies must be shifted in order to have a zero-centered spectrum. |
FFT::FFT | ( | ApplicationWindow * | parent, | |
Table * | t, | |||
const QString & | realColName, | |||
const QString & | imagColName = QString() , |
|||
int | from = 1 , |
|||
int | to = -1 | |||
) |
References init(), and setDataFromTable().
FFT::FFT | ( | ApplicationWindow * | parent, | |
Graph * | g, | |||
const QString & | curveTitle | |||
) |
References init(), and Filter::setDataFromCurve().
FFT::FFT | ( | ApplicationWindow * | parent, | |
Graph * | g, | |||
const QString & | curveTitle, | |||
double | start, | |||
double | end | |||
) |
References init(), and Filter::setDataFromCurve().
QString FFT::fftCurve | ( | ) | [private] |
References Filter::d_curve, ApplicationWindow::d_decimal_digits, Filter::d_explanation, Filter::d_init_err, d_inverse, Filter::d_n, d_normalize, d_sampling, d_shift_order, Filter::d_x, Filter::d_y, and ApplicationWindow::locale().
Referenced by output().
QString FFT::fftTable | ( | ) | [private] |
References Table::colName(), ApplicationWindow::d_decimal_digits, Filter::d_explanation, Filter::d_init_err, d_inverse, Filter::d_n, d_normalize, d_real_col, d_sampling, d_shift_order, Filter::d_table, Filter::d_x, Filter::d_y, and ApplicationWindow::locale().
Referenced by output().
void FFT::init | ( | ) | [private] |
Reimplemented from Filter.
References d_imag_col, d_inverse, d_normalize, Filter::d_output_graph, d_real_col, d_sampling, and d_shift_order.
Referenced by FFT().
void FFT::normalizeAmplitudes | ( | bool | norm = true |
) | [inline] |
void FFT::output | ( | const QString & | text | ) | [private] |
References MultiLayer::activeLayer(), ColorBox::color(), Filter::createOutputGraph(), Filter::d_curveColorIndex, Filter::d_explanation, Filter::d_graphics_display, d_inverse, Filter::d_n, Filter::d_output_graph, Filter::d_result_table, ApplicationWindow::generateUniqueName(), Graph::insertCurve(), ApplicationWindow::newHiddenTable(), Graph::setXAxisTitle(), and Graph::setYAxisTitle().
void FFT::output | ( | ) | [private, virtual] |
Performs the data analysis and takes care of the output.
Reimplemented from Filter.
References Filter::d_curve, Filter::d_graph, Filter::d_table, fftCurve(), and fftTable().
bool FFT::setDataFromTable | ( | Table * | t, | |
const QString & | realColName, | |||
const QString & | imagColName = QString() , |
|||
int | from = 0 , |
|||
int | to = -1 | |||
) | [private, virtual] |
Reimplemented from Filter.
References Table::cell(), Table::colIndex(), Filter::d_curve, Filter::d_graph, d_imag_col, Filter::d_init_err, Filter::d_n, d_real_col, Filter::d_table, Filter::d_x, Filter::d_y, Table::Numeric, and Table::numRows().
Referenced by FFT().
void FFT::setInverseFFT | ( | bool | inverse = true |
) | [inline] |
void FFT::setSampling | ( | double | sampling | ) | [inline] |
void FFT::shiftFrequencies | ( | bool | shift = true |
) | [inline] |
int FFT::d_imag_col [private] |
Referenced by init(), and setDataFromTable().
bool FFT::d_inverse [private] |
Flag telling if an inverse FFT must be performed.
Referenced by fftCurve(), fftTable(), init(), output(), and setInverseFFT().
bool FFT::d_normalize [private] |
Flag telling if the amplitudes in the output spectrum must be normalized.
Referenced by fftCurve(), fftTable(), init(), and normalizeAmplitudes().
int FFT::d_real_col [private] |
Referenced by fftTable(), init(), and setDataFromTable().
double FFT::d_sampling [private] |
Referenced by fftCurve(), fftTable(), init(), and setSampling().
bool FFT::d_shift_order [private] |
Flag telling if the output frequencies must be shifted in order to have a zero-centered spectrum.
Referenced by fftCurve(), fftTable(), init(), and shiftFrequencies().