Public Member Functions |
| GaussFit (ApplicationWindow *parent, QwtPlotCurve *) |
| GaussFit (ApplicationWindow *parent, QwtPlotCurve *, double, double) |
| GaussFit (ApplicationWindow *parent, Graph *g) |
| GaussFit (ApplicationWindow *parent, Graph *g, const QString &curveTitle) |
| GaussFit (ApplicationWindow *parent, Graph *g, const QString &curveTitle, double start, double end) |
| GaussFit (ApplicationWindow *parent, Table *t, const QString &xCol, const QString &yCol, int startRow=0, int endRow=-1) |
void | enablePeakCurves (bool on) |
virtual double | eval (double *par, double x) |
| Calculates the data for the output fit curve.
|
double | evalPeak (double *par, double x, int peak) |
void | guessInitialValues () |
| Used by the GaussFit and LorentzFit derived classes to calculate initial values for the parameters.
|
| MultiPeakFit (ApplicationWindow *parent, QwtPlotCurve *c, PeakProfile profile=Gauss, int peaks=1) |
| MultiPeakFit (ApplicationWindow *parent, Graph *g=0, PeakProfile profile=Gauss, int peaks=1) |
| MultiPeakFit (ApplicationWindow *parent, Table *t, const QString &xCol, const QString &yCol, int startRow=0, int endRow=-1, PeakProfile profile=Gauss, int peaks=1) |
int | peaks () |
PeakProfile | profile () |
void | setNumPeaks (int n) |
void | setPeakCurvesColor (int colorIndex) |
void | setPeakCurvesColor (const QColor &color) |
double | adjustedRSquare () |
| Returns adjusted R^2.
|
double | chiSquare () |
| Returns the sum of squares of the residuals from the best-fit line.
|
Matrix * | covarianceMatrix (const QString &matrixName) |
double * | errors () |
| Returns a vector with the standard deviations of the results.
|
QString | fileName () |
| Fit (ApplicationWindow *parent, QwtPlotCurve *c) |
| Fit (ApplicationWindow *parent, Graph *g=0, const QString &name=QString()) |
| Fit (ApplicationWindow *parent, Table *t, const QString &name=QString()) |
virtual void | fit () |
| Actually does the fit. Should be reimplemented in derived classes.
|
QString | formula () |
void | generateFunction (bool yes, int points=100) |
| Specifies weather the result of the fit is a function curve.
|
double | initialGuess (int parIndex) |
double | lcl (int parIndex, double confidenceLevel) |
| Lower Confidence Limit.
|
virtual QString | legendInfo () |
| Output string added to the plot as a new legend.
|
bool | load (const QString &fileName) |
int | numParameters () |
QStringList | parameterNames () |
Table * | parametersTable (const QString &tableName) |
double * | residuals () |
| Returns a vector with the fit residuals.
|
QString | resultFormula () |
double * | results () |
| Returns a vector with the fit results.
|
double | rmse () |
| Returns the Root Mean Squared Error.
|
double | rSquare () |
| Returns R^2.
|
double | rss () |
| Returns the Residual Sum of Squares.
|
virtual bool | run () |
| Actually does the job. Should be reimplemented in derived classes.
|
bool | save (const QString &fileName) |
void | scaleErrors (bool yes=true) |
| Specifies wheather the errors must be scaled with sqrt(chi_2/dof)
|
void | setAlgorithm (Algorithm s) |
void | setDataCurve (QwtPlotCurve *curve, double start, double end) |
bool | setDataFromTable (Table *t, const QString &xColName, const QString &yColName, int from=1, int to=-1, bool sort=false) |
void | setFileName (const QString &fn) |
virtual bool | setFormula (const QString &, bool=true) |
void | setInitialGuess (int parIndex, double val) |
void | setInitialGuesses (double *x_init) |
void | setParameterExplanations (const QStringList &lst) |
void | setParameterRange (int parIndex, double left, double right) |
virtual bool | setParametersList (const QStringList &) |
void | setType (FitType t) |
bool | setWeightingData (WeightingMethod w, const QString &colName=QString::null) |
| Sets the data set to be used for weighting.
|
void | showConfidenceLimits (double confidenceLevel) |
void | showPredictionLimits (double confidenceLevel) |
QwtPlotCurve * | showResiduals () |
| Plot residuals and display data values in a column.
|
FitType | type () |
double | ucl (int parIndex, double confidenceLevel) |
| Upper Confidence Limit.
|
void | writeParametersToTable (Table *t, bool append=false) |
| ~Fit () |
int | dataSize () |
| Returns the size of the input data set.
|
virtual void | enableGraphicsDisplay (bool on=true, Graph *g=0) |
bool | error () |
| Filter (ApplicationWindow *parent, Table *t=0, const QString &name=QString()) |
| Filter (ApplicationWindow *parent, Graph *g=0, const QString &name=QString()) |
| Filter (ApplicationWindow *parent, Matrix *m, const QString &name=QString()) |
| Filter (ApplicationWindow *parent, QwtPlotCurve *c) |
Graph * | outputGraph () |
| Returns a pointer to the graph where the result curve should be displayed.
|
QwtPlotCurve * | resultCurve () |
| Returns a pointer to the plot curve created to display the results.
|
Table * | resultTable () |
| Returns a pointer to the table created to display the results.
|
void | setColor (int colorId) |
| Obsolete: sets the color of the output fit curve.
|
void | setColor (const QColor &color) |
| 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!
|
bool | setDataFromCurve (QwtPlotCurve *c) |
bool | setDataFromCurve (QwtPlotCurve *c, double from, double to) |
bool | setDataFromCurve (const QString &curveTitle, Graph *g=0) |
bool | setDataFromCurve (const QString &curveTitle, double from, double to, Graph *g=0) |
void | setError (bool on=true) |
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 | setSortData (bool on=true) |
void | setTolerance (double eps) |
| Sets the tolerance used by the GSL routines.
|
void | setUpdateOutputGraph (bool update=true) |
virtual void | showLegend () |
| Adds a new legend to the plot. Calls virtual legendInfo()
|
double * | x () |
| Returns the x values of the input data set.
|
double * | y () |
| Returns the y values of the input data set.
|
| ~Filter () |