QtiPlot 0.9.7.3
|
#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. | |
LinearSlopeFit (ApplicationWindow *parent, Graph *g, const QString &curveTitle) | |
LinearSlopeFit (ApplicationWindow *parent, Table *t, const QString &xCol, const QString &yCol, int startRow=1, int endRow=-1) | |
LinearSlopeFit (ApplicationWindow *parent, Graph *g, const QString &curveTitle, double start, double end) | |
LinearSlopeFit (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 () |
LinearSlopeFit::LinearSlopeFit | ( | ApplicationWindow * | parent, |
Graph * | g | ||
) |
References init().
LinearSlopeFit::LinearSlopeFit | ( | ApplicationWindow * | parent, |
Graph * | g, | ||
const QString & | curveTitle | ||
) |
References init(), and Filter::setDataFromCurve().
LinearSlopeFit::LinearSlopeFit | ( | ApplicationWindow * | parent, |
Graph * | g, | ||
const QString & | curveTitle, | ||
double | start, | ||
double | end | ||
) |
References init(), and Filter::setDataFromCurve().
LinearSlopeFit::LinearSlopeFit | ( | ApplicationWindow * | parent, |
Table * | t, | ||
const QString & | xCol, | ||
const QString & | yCol, | ||
int | startRow = 1 , |
||
int | endRow = -1 |
||
) |
References init(), and Fit::setDataFromTable().
void LinearSlopeFit::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 LinearSlopeFit::eval | ( | double * | , |
double | |||
) | [inline, virtual] |
void LinearSlopeFit::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::fitSlope().
void LinearSlopeFit::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 LinearSlopeFit().