#include <PolynomialFit.h>

Public Member Functions | |
| virtual double | eval (double *par, double x) |
| Calculates the data for the output fit curve. | |
| void | fit () |
| Actually does the fit. Should be reimplemented in derived classes. | |
| virtual QString | legendInfo () |
| Output string added to the plot as a new legend. | |
| int | order () |
| PolynomialFit (ApplicationWindow *parent, Table *t, const QString &xCol, const QString &yCol, int startRow=1, int endRow=-1, int order=2, bool legend=false) | |
| PolynomialFit (ApplicationWindow *parent, Graph *g, QString &curveTitle, double start, double end, int order=2, bool legend=false) | |
| PolynomialFit (ApplicationWindow *parent, Graph *g, QString &curveTitle, int order=2, bool legend=false) | |
| PolynomialFit (ApplicationWindow *parent, Graph *g, int order=2, bool legend=false) | |
| void | setOrder (int order) |
Static Public Member Functions | |
| static QString | generateFormula (int order) |
| static QStringList | generateParameterList (int order) |
Private Member Functions | |
| void | calculateFitCurveData (double *X, double *Y) |
| Calculates the data for the output fit curve and store itin the X an Y vectors. | |
| void | init () |
Private Attributes | |
| int | d_order |
| bool | show_legend |
| PolynomialFit::PolynomialFit | ( | ApplicationWindow * | parent, | |
| Graph * | g, | |||
| int | order = 2, |
|||
| bool | legend = false | |||
| ) |
References init().
| PolynomialFit::PolynomialFit | ( | ApplicationWindow * | parent, | |
| Graph * | g, | |||
| QString & | curveTitle, | |||
| int | order = 2, |
|||
| bool | legend = false | |||
| ) |
References init(), and Filter::setDataFromCurve().
| PolynomialFit::PolynomialFit | ( | ApplicationWindow * | parent, | |
| Graph * | g, | |||
| QString & | curveTitle, | |||
| double | start, | |||
| double | end, | |||
| int | order = 2, |
|||
| bool | legend = false | |||
| ) |
References init(), and Filter::setDataFromCurve().
| PolynomialFit::PolynomialFit | ( | ApplicationWindow * | parent, | |
| Table * | t, | |||
| const QString & | xCol, | |||
| const QString & | yCol, | |||
| int | startRow = 1, |
|||
| int | endRow = -1, |
|||
| int | order = 2, |
|||
| bool | legend = false | |||
| ) |
References init(), and Fit::setDataFromTable().
| void PolynomialFit::calculateFitCurveData | ( | double * | X, | |
| double * | Y | |||
| ) | [private, virtual] |
Calculates the data for the output fit curve and store itin the X an Y vectors.
Reimplemented from Fit.
References Fit::d_gen_function, Filter::d_n, Fit::d_p, Filter::d_points, Fit::d_results, Filter::d_x, and Filter::x().
| double PolynomialFit::eval | ( | double * | , | |
| double | ||||
| ) | [virtual] |
Calculates the data for the output fit curve.
Reimplemented from Fit.
References Fit::d_p, and Filter::y().
| void PolynomialFit::fit | ( | ) | [virtual] |
Actually does the fit. Should be reimplemented in derived classes.
Reimplemented from Fit.
References Fit::chi_2, Fit::covar, Filter::d_init_err, Filter::d_n, Fit::d_p, Fit::d_param_init, Fit::d_results, Fit::d_w, Fit::d_weighting, Filter::d_x, Filter::d_y, Fit::generateFitCurve(), Fit::logFitInfo(), Fit::NoWeighting, show_legend, Filter::showLegend(), ApplicationWindow::updateLog(), ApplicationWindow::writeFitResultsToLog, and Filter::y().
Referenced by PolynomFitDialog::fit().
| QString PolynomialFit::generateFormula | ( | int | order | ) | [static] |
| QStringList PolynomialFit::generateParameterList | ( | int | order | ) | [static] |
Referenced by setOrder().
| void PolynomialFit::init | ( | ) | [private] |
Reimplemented from Fit.
References Filter::d_explanation, d_order, Fit::d_scale_errors, Fit::is_non_linear, and setOrder().
Referenced by PolynomialFit().
| QString PolynomialFit::legendInfo | ( | ) | [virtual] |
Output string added to the plot as a new legend.
Reimplemented from Fit.
References Fit::d_p, Filter::d_prec, Fit::d_results, and ApplicationWindow::locale().
| int PolynomialFit::order | ( | ) | [inline] |
References d_order.
| void PolynomialFit::setOrder | ( | int | order | ) |
References Fit::d_formula, d_order, Fit::d_p, Fit::d_param_explain, Fit::d_param_names, Fit::freeWorkspace(), generateFormula(), generateParameterList(), and Fit::initWorkspace().
Referenced by init().
int PolynomialFit::d_order [private] |
Referenced by init(), order(), and setOrder().
bool PolynomialFit::show_legend [private] |
Referenced by fit().
1.5.6