#include <NonLinearFit.h>
Public Member Functions | |
double | eval (double *par, double x) |
Calculates the data for the output fit curve. | |
NonLinearFit (ApplicationWindow *parent, Table *t, const QString &xCol, const QString &yCol, int startRow=1, int endRow=-1) | |
NonLinearFit (ApplicationWindow *parent, Graph *g, const QString &curveTitle, double start, double end) | |
NonLinearFit (ApplicationWindow *parent, Graph *g, const QString &curveTitle) | |
NonLinearFit (ApplicationWindow *parent, Graph *g) | |
virtual void | setFormula (const QString &s) |
virtual void | setParametersList (const QStringList &lst) |
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 () |
NonLinearFit::NonLinearFit | ( | ApplicationWindow * | parent, | |
Graph * | g | |||
) |
References init().
NonLinearFit::NonLinearFit | ( | ApplicationWindow * | parent, | |
Graph * | g, | |||
const QString & | curveTitle | |||
) |
References init(), and Filter::setDataFromCurve().
NonLinearFit::NonLinearFit | ( | ApplicationWindow * | parent, | |
Graph * | g, | |||
const QString & | curveTitle, | |||
double | start, | |||
double | end | |||
) |
References init(), and Filter::setDataFromCurve().
NonLinearFit::NonLinearFit | ( | ApplicationWindow * | parent, | |
Table * | t, | |||
const QString & | xCol, | |||
const QString & | yCol, | |||
int | startRow = 1 , |
|||
int | endRow = -1 | |||
) |
References init(), and Fit::setDataFromTable().
void NonLinearFit::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_formula, Fit::d_gen_function, Filter::d_n, Fit::d_p, Fit::d_param_names, Filter::d_points, Fit::d_results, Filter::d_x, and Filter::x().
double NonLinearFit::eval | ( | double * | , | |
double | ||||
) | [virtual] |
Calculates the data for the output fit curve.
Reimplemented from Fit.
References Fit::d_formula, Fit::d_p, and Fit::d_param_names.
void NonLinearFit::init | ( | ) | [private] |
Reimplemented from Fit.
References Fit::d_df, Filter::d_explanation, Fit::d_f, Fit::d_fdf, Fit::d_fit_type, Fit::d_formula, Fit::d_fsimplex, Fit::User, user_d(), user_df(), user_f(), and user_fdf().
Referenced by NonLinearFit().
void NonLinearFit::setFormula | ( | const QString & | s | ) | [virtual] |
Reimplemented from Fit.
References Fit::d_formula, Filter::d_init_err, Fit::d_p, Fit::d_param_init, and Fit::d_param_names.
Referenced by ApplicationWindow::saveFitFunctions().
void NonLinearFit::setParametersList | ( | const QStringList & | lst | ) | [virtual] |
Reimplemented from Fit.
References Filter::d_init_err, Fit::d_p, Fit::d_param_explain, Fit::d_param_names, Fit::freeWorkspace(), and Fit::initWorkspace().
Referenced by ApplicationWindow::saveFitFunctions().