#include <Filter.h>

Public Member Functions | |
| int | dataSize () |
| Returns the size of the fitted data set. | |
| bool | error () |
| Filter (ApplicationWindow *parent, Graph *g=0, const char *name=0) | |
| Filter (ApplicationWindow *parent, Table *t=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 (const QString &colorName) |
| Sets the color of the output fit curve. Provided for convenience. To be used in scripts only! | |
| void | setColor (int colorId) |
| Sets the color of the output fit curve. | |
| virtual void | setDataCurve (int curve, double start, double end) |
| bool | setDataFromCurve (const QString &curveTitle, double from, double to, Graph *g=0) |
| bool | setDataFromCurve (const QString &curveTitle, 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 () | |
Protected Member Functions | |
| 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. | |
| virtual int | curveData (QwtPlotCurve *c, double start, double end, double **x, double **y) |
| int | curveIndex (const QString &curveTitle, Graph *g) |
| Performs checks and returns the index of the source data curve if OK, -1 otherwise. | |
| void | init () |
| virtual QString | logInfo () |
| Output string added to the log pannel of the application. | |
| virtual void | output () |
| Performs the data analysis and takes care of the output. | |
| virtual int | sortedCurveData (QwtPlotCurve *c, double start, double end, double **x, double **y) |
| Same as curveData, but sorts the points by their x value. | |
Protected Attributes | |
| 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 | |
| Filter::Filter | ( | ApplicationWindow * | parent, | |
| Table * | t = 0, |
|||
| const char * | name = 0 | |||
| ) |
| Filter::Filter | ( | ApplicationWindow * | parent, | |
| Graph * | g = 0, |
|||
| const char * | name = 0 | |||
| ) |
| Filter::~Filter | ( | ) |
| QwtPlotCurve * Filter::addResultCurve | ( | double * | x, | |
| double * | y | |||
| ) | [protected] |
Adds the result curve to the target output plot window. Creates a hidden table and frees the input data from memory.
| virtual void Filter::calculateOutputData | ( | double * | X, | |
| double * | Y | |||
| ) | [inline, protected, virtual] |
Calculates the data for the output curve and store it in the X an Y vectors.
Reimplemented in FFTFilter, Interpolation, and SmoothFilter.
| int Filter::curveData | ( | QwtPlotCurve * | c, | |
| double | start, | |||
| double | end, | |||
| double ** | x, | |||
| double ** | y | |||
| ) | [protected, virtual] |
Sets x and y to the curve points between start and end. Memory will be allocated with new double[]. Returns the number of points within range == size of x and y arrays.
| int Filter::curveIndex | ( | const QString & | curveTitle, | |
| Graph * | g | |||
| ) | [protected] |
Performs checks and returns the index of the source data curve if OK, -1 otherwise.
| int Filter::dataSize | ( | ) | [inline] |
Returns the size of the fitted data set.
| bool Filter::error | ( | ) | [inline] |
| void Filter::init | ( | ) | [protected] |
Reimplemented in Differentiation, ExponentialFit, TwoExpFit, ThreeExpFit, FFT, Integration, LorentzFit, GaussFit, GaussAmpFit, NonLinearFit, PluginFit, PolynomialFit, LinearFit, and SigmoidalFit.
| virtual QString Filter::legendInfo | ( | ) | [inline, virtual] |
| virtual QString Filter::logInfo | ( | ) | [inline, protected, virtual] |
| void Filter::output | ( | ) | [protected, virtual] |
Performs the data analysis and takes care of the output.
Reimplemented in Convolution, Deconvolution, Correlation, Differentiation, FFT, and Integration.
| bool Filter::run | ( | ) | [virtual] |
| void Filter::setColor | ( | const QString & | colorName | ) |
Sets the color of the output fit curve. Provided for convenience. To be used in scripts only!
| void Filter::setColor | ( | int | colorId | ) | [inline] |
Sets the color of the output fit curve.
| void Filter::setDataCurve | ( | int | curve, | |
| double | start, | |||
| double | end | |||
| ) | [virtual] |
Reimplemented in Fit.
| bool Filter::setDataFromCurve | ( | const QString & | curveTitle, | |
| double | from, | |||
| double | to, | |||
| Graph * | g = 0 | |||
| ) |
| bool Filter::setDataFromCurve | ( | const QString & | curveTitle, | |
| Graph * | g = 0 | |||
| ) |
| void Filter::setInterval | ( | double | from, | |
| double | to | |||
| ) |
Changes the data range if the source curve was already assigned. Provided for convenience.
| void Filter::setMaximumIterations | ( | int | iter | ) | [inline] |
Sets the maximum number of iterations to be performed during an iterative session.
| void Filter::setOutputPoints | ( | int | points | ) | [inline] |
Sets the number of points in the output curve.
| void Filter::setOutputPrecision | ( | int | digits | ) | [inline] |
Sets the precision used for the output.
| void Filter::setTolerance | ( | double | eps | ) | [inline] |
Sets the tolerance used by the GSL routines.
| void Filter::showLegend | ( | ) | [virtual] |
Adds a new legend to the plot. Calls virtual legendInfo().
| int Filter::sortedCurveData | ( | QwtPlotCurve * | c, | |
| double | start, | |||
| double | end, | |||
| double ** | x, | |||
| double ** | y | |||
| ) | [protected, virtual] |
QwtPlotCurve* Filter::d_curve [protected] |
The curve to be analysed.
int Filter::d_curveColorIndex [protected] |
Color index of the result curve.
QString Filter::d_explanation [protected] |
String explaining the operation in the comment of the result table and in the project explorer.
double Filter::d_from [protected] |
Data interval.
Graph* Filter::d_graph [protected] |
The graph where the result curve should be displayed.
bool Filter::d_init_err [protected] |
Error flag telling if something went wrong during the initialization phase.
int Filter::d_max_iterations [protected] |
Maximum number of iterations per fit.
int Filter::d_min_points [protected] |
Minimum number of data points necessary to perform the operation.
int Filter::d_n [protected] |
Size of the data arrays.
int Filter::d_points [protected] |
Number of result points to de calculated and displayed in the output curve.
int Filter::d_prec [protected] |
Precision (number of significant digits) used for the results output.
bool Filter::d_sort_data [protected] |
Specifies if the filter needs sorted data as input.
Table* Filter::d_table [protected] |
A table source of data.
double Filter::d_to [protected] |
double Filter::d_tolerance [protected] |
GSL Tolerance, if ever needed...
double* Filter::d_x [protected] |
x data set to be analysed
double* Filter::d_y [protected] |
y data set to be analysed
1.5.3