#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. | |
LinearFit (ApplicationWindow *parent, Table *t, const QString &xCol, const QString &yCol, int startRow=1, int endRow=-1) | |
LinearFit (ApplicationWindow *parent, Graph *g, const QString &curveTitle, double start, double end) | |
LinearFit (ApplicationWindow *parent, Graph *g, const QString &curveTitle) | |
LinearFit (ApplicationWindow *parent, QwtPlotCurve *c, double start, double end) | |
LinearFit (ApplicationWindow *parent, QwtPlotCurve *c) | |
LinearFit (ApplicationWindow *parent, Graph *g) | |
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 () |
LinearFit::LinearFit | ( | ApplicationWindow * | parent, | |
Graph * | g | |||
) |
References init().
LinearFit::LinearFit | ( | ApplicationWindow * | parent, | |
QwtPlotCurve * | c | |||
) |
References init(), and Filter::setDataFromCurve().
LinearFit::LinearFit | ( | ApplicationWindow * | parent, | |
QwtPlotCurve * | c, | |||
double | start, | |||
double | end | |||
) |
References init(), and Filter::setDataFromCurve().
LinearFit::LinearFit | ( | ApplicationWindow * | parent, | |
Graph * | g, | |||
const QString & | curveTitle | |||
) |
References init(), and Filter::setDataFromCurve().
LinearFit::LinearFit | ( | ApplicationWindow * | parent, | |
Graph * | g, | |||
const QString & | curveTitle, | |||
double | start, | |||
double | end | |||
) |
References init(), and Filter::setDataFromCurve().
LinearFit::LinearFit | ( | ApplicationWindow * | parent, | |
Table * | t, | |||
const QString & | xCol, | |||
const QString & | yCol, | |||
int | startRow = 1 , |
|||
int | endRow = -1 | |||
) |
References init(), and Fit::setDataFromTable().
void LinearFit::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, Filter::d_points, Fit::d_results, Filter::d_x, and Filter::x().
virtual double LinearFit::eval | ( | double * | , | |
double | ||||
) | [inline, virtual] |
Calculates the data for the output fit curve.
Reimplemented from Fit.
void LinearFit::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_results, Fit::d_w, Fit::d_weighting, Filter::d_x, Filter::d_y, Fit::generateFitCurve(), Fit::logFitInfo(), Fit::NoWeighting, ApplicationWindow::updateLog(), and ApplicationWindow::writeFitResultsToLog.
Referenced by ApplicationWindow::fitLinear().
void LinearFit::init | ( | ) | [private] |
Reimplemented from Fit.
References Fit::covar, Filter::d_explanation, Fit::d_formula, Filter::d_min_points, Fit::d_p, Fit::d_param_explain, Fit::d_param_init, Fit::d_param_names, Fit::d_results, Fit::d_scale_errors, and Fit::is_non_linear.
Referenced by LinearFit().