SciDAVis
1.D4
|
#include <FFT.h>
Public Member Functions | |
FFT (ApplicationWindow *parent, Table *t, const QString &realColName, const QString &imagColName=QString()) | |
FFT (ApplicationWindow *parent, Graph *g, const QString &curveTitle) | |
void | normalizeAmplitudes (bool norm=true) |
void | setInverseFFT (bool inverse=true) |
void | setSampling (double sampling) |
void | shiftFrequencies (bool shift=true) |
Public Member Functions inherited from Filter | |
int | dataSize () |
Returns the size of the fitted data set. | |
bool | error () |
Filter (ApplicationWindow *parent, Table *t=0, const char *name=0) | |
Filter (ApplicationWindow *parent, Graph *g=0, const char *name=0) | |
virtual QString | legendInfo () |
Output string added to the plot as a new legend. | |
virtual bool | run () |
Actually does the job. Should be reimplemented in derived classes. | |
void | setColor (int colorId) |
Sets the color of the output fit curve. | |
void | setColor (const QString &colorName) |
Sets the color of the output fit curve. Provided for convenience. To be used in scripts only! | |
virtual void | setDataCurve (int curve, double start, double end) |
bool | setDataFromCurve (const QString &curveTitle, Graph *g=0) |
bool | setDataFromCurve (const QString &curveTitle, double from, double to, Graph *g=0) |
void | setInterval (double from, double to) |
Changes the data range if the source curve was already assigned. Provided for convenience. | |
void | setMaximumIterations (int iter) |
Sets the maximum number of iterations to be performed during an iterative session. | |
void | setOutputPoints (int points) |
Sets the number of points in the output curve. | |
void | setOutputPrecision (int digits) |
Sets the precision used for the output. | |
void | setTolerance (double eps) |
Sets the tolerance used by the GSL routines. | |
virtual void | showLegend () |
Adds a new legend to the plot. Calls virtual legendInfo() | |
~Filter () |
Private Member Functions | |
QList< Column * > | fftCurve () |
QList< Column * > | fftTable () |
void | init () |
void | output () |
Performs the data analysis and takes care of the output. | |
void | output (QList< Column * > columns) |
void | setDataFromTable (Table *t, const QString &realColName, const QString &imagColName=QString()) |
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. |
Additional Inherited Members | |
Protected Member Functions inherited from Filter | |
QwtPlotCurve * | addResultCurve (double *x, double *y) |
Adds the result curve to the target output plot window. Creates a hidden table and frees the input data from memory. | |
virtual void | calculateOutputData (double *X, double *Y) |
Calculates the data for the output curve and store it in the X an Y vectors. | |
int | curveIndex (const QString &curveTitle, Graph *g) |
Performs checks and returns the index of the source data curve if OK, -1 otherwise. | |
virtual bool | isDataAcceptable () |
virtual QString | logInfo () |
Output string added to the log pannel of the application. | |
Protected Attributes inherited from Filter | |
QwtPlotCurve * | d_curve |
The curve to be analysed. | |
int | d_curveColorIndex |
Color index of the result curve. | |
QString | d_explanation |
String explaining the operation in the comment of the result table and in the project explorer. | |
double | d_from |
Data interval. | |
Graph * | d_graph |
The graph where the result curve should be displayed. | |
bool | d_init_err |
Error flag telling if something went wrong during the initialization phase. | |
int | d_max_iterations |
Maximum number of iterations per fit. | |
int | d_min_points |
Minimum number of data points necessary to perform the operation. | |
int | d_n |
Size of the data arrays. | |
int | d_points |
Number of result points to de calculated and displayed in the output curve. | |
int | d_prec |
Precision (number of significant digits) used for the results output. | |
bool | d_sort_data |
Specifies if the filter needs sorted data as input. | |
Table * | d_table |
A table source of data. | |
double | d_to |
double | d_tolerance |
GSL Tolerance, if ever needed... | |
double * | d_x |
x data set to be analysed | |
double * | d_y |
y data set to be analysed |
FFT::FFT | ( | ApplicationWindow * | parent, |
Table * | t, | ||
const QString & | realColName, | ||
const QString & | imagColName = QString() |
||
) |
References init(), and setDataFromTable().
FFT::FFT | ( | ApplicationWindow * | parent, |
Graph * | g, | ||
const QString & | curveTitle | ||
) |
References init(), and Filter::setDataFromCurve().
|
private |
References Filter::d_curve, 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, SciDAVis::Numeric, SciDAVis::X, and SciDAVis::Y.
Referenced by output().
|
private |
References Filter::d_init_err, d_inverse, d_normalize, d_sampling, d_shift_order, Filter::d_table, Filter::d_x, Filter::d_y, SciDAVis::Numeric, Table::numRows(), SciDAVis::X, and SciDAVis::Y.
Referenced by output().
|
private |
Reimplemented from Filter.
References d_imag_col, d_inverse, d_normalize, d_real_col, d_sampling, and d_shift_order.
Referenced by FFT().
|
inline |
References d_normalize.
Referenced by FFTDialog::accept().
|
privatevirtual |
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().
|
private |
|
private |
References Table::cell(), Table::colIndex(), d_imag_col, Filter::d_init_err, Filter::d_n, d_real_col, Filter::d_table, Filter::d_x, Filter::d_y, and Table::numRows().
Referenced by FFT().
|
inline |
References d_inverse.
Referenced by FFTDialog::accept().
|
inline |
References d_sampling.
Referenced by FFTDialog::accept().
|
inline |
References d_shift_order.
Referenced by FFTDialog::accept().
|
private |
Referenced by init(), and setDataFromTable().
|
private |
Flag telling if an inverse FFT must be performed.
Referenced by fftCurve(), fftTable(), init(), output(), and setInverseFFT().
|
private |
Flag telling if the amplitudes in the output spectrum must be normalized.
Referenced by fftCurve(), fftTable(), init(), and normalizeAmplitudes().
|
private |
Referenced by init(), and setDataFromTable().
|
private |
Referenced by fftCurve(), fftTable(), init(), and setSampling().
|
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().