Fit Class Reference

Inheritance diagram for Fit:

Filter ExponentialFit LinearFit LinearSlopeFit LogisticFit MultiLinearRegression MultiPeakFit NonLinearFit PluginFit PolynomialFit SigmoidalFit SineFit SineSqrFit SurfaceFit ThreeExpFit TwoExpFit

List of all members.

Public Types

enum  Algorithm { ScaledLevenbergMarquardt, UnscaledLevenbergMarquardt, NelderMeadSimplex, MPFIT }

Public Member Functions

double adjustedRSquare ()
double chiSquare ()
TableconfidenceBandsTable ()
 Table window used for the output of the confidence bands.
MatrixcovarianceMatrix (const QString &)
End int degreesOfFreedom ()
QString derivedParameterFunction (int index)
QString derivedParameterName (int index)
QString derivedParametersInfo ()
double derivedParameterValue (int index)
End SIP_PYTUPLE errors ()
virtual void fit ()
 Fit (ApplicationWindow */TransferThis/, Graph *=0, const char *=0)
 for (int i=0;i< n;i++)
QString formula ()
void generateFunction (bool, int=100)
virtual End void guessInitialValues ()
 if (sipRes)
 if (sipRes)
 if (sipRes)
int iterations ()
 Returns the number of iterations performed by the fit procedure.
double lcl (int, double)
DataCurvelclCurve ()
 Lower confidence limit curve.
virtual QString legendInfo ()
bool load (const QString &)
double lowerBound (const QString &name)
double lowerBound (int index)
DataCurvelplCurve ()
 Lower prediction limit curve.
int numDerivedParameters ()
int numParameters ()
QStringList parameterNames ()
TableparametersTable (const QString &)
double reducedChiSquare ()
End SIP_PYTUPLE residuals ()
DataCurveresidualsCurve ()
 Residuals curve.
TableresidualsTable ()
 Table window used for the output of the residuals.
SIP_PYTUPLE results ()
PlotTableresultsPlotTable ()
double rmse ()
double rSquare ()
double rss ()
virtual bool run ()
bool save (const QString &)
void scaleErrors (bool yes=true)
void setAlgorithm (Algorithm)
void setConfBandsTable (Table *)
void setConstantParameter (const QString &name, double val)
void setConstantParameter (int index, bool on)
bool setDataFromTable (Table *, const QString &, const QString &, int=1, int=-1, bool=false)
void setInitialGuess (int, double)/PyName
sipCpp setInitialGuesses (values)
void setInitialGuesses (...)/PyName
void setInterval (double from, double to)
void setLclCurve (DataCurve *)
void setLowerBound (const QString &name, double v)
void setLowerBound (int index, double v)
void setLplCurve (DataCurve *)
void setParameterRange (const QString &name, double low, double up)
void setParameterRange (int index, double low, double up)
void setResidualsCurve (DataCurve *)
void setResidualsTable (Table *)
void setResultsPlotTable (PlotTable *)
void setUclCurve (DataCurve *)
void setUplCurve (DataCurve *)
void setUpperBound (const QString &name, double v)
void setUpperBound (int index, double v)
bool setWeightingData (WeightingMethod, const QString &=QString::null)
void showConfidenceLimits (double, bool=false)
void showLegend ()
void showPredictionLimits (double)
DataCurveshowResiduals ()
 Plot residuals and display data values in a new table.
DataCurveshowResidualsHistogram ()
 Plot histogram of the residuals.
int status ()
 Returns the status of the fit procedure or -1000 if not performed yet.
QString statusInfo (int)
 String explaining the status of the fit procedure.
double sxx ()
 The total sum of squares (TSS) of X data about the mean. Used when calculating confidence/prediction bands.
double tss ()
 Returns the Total Sum of Squares.
double ucl (int, double)
DataCurveuclCurve ()
 Upper confidence limit curve.
DataCurveuplCurve ()
 Upper prediction limit curve.
double upperBound (const QString &name)
double upperBound (int index)
double weigthSum ()
 The sum of the weights.
double xMean ()
 The mean value of the x data.
 ~Fit ()

Public Attributes

MethodCode double * errors = sipCpp->errors()
MethodCode int n = PyTuple_GET_SIZE(a0)
MethodCode double * residuals = sipCpp->residuals()
MethodCode double * results = sipCpp->results()
else sipIsErr = 1
 sipRes = PyTuple_New(size)
int size = sipCpp->numParameters()
delete values
double * values = new double[n]


Member Enumeration Documentation

Enumerator:
ScaledLevenbergMarquardt 
UnscaledLevenbergMarquardt 
NelderMeadSimplex 
MPFIT 

Enumerator:
NoWeighting 
Instrumental 
Statistical 
Dataset 
Direct 


Constructor & Destructor Documentation

Fit::Fit ( ApplicationWindow */TransferThis/  ,
Graph = 0,
const char *  = 0 
)

Fit::~Fit (  ) 


Member Function Documentation

double Fit::adjustedRSquare (  ) 

double Fit::chiSquare (  ) 

Table* Fit::confidenceBandsTable (  ) 

Table window used for the output of the confidence bands.

Matrix* Fit::covarianceMatrix ( const QString &   ) 

End int Fit::degreesOfFreedom (  ) 

QString Fit::derivedParameterFunction ( int  index  ) 

QString Fit::derivedParameterName ( int  index  ) 

QString Fit::derivedParametersInfo (  ) 

Reimplemented in MultiPeakFit.

double Fit::derivedParameterValue ( int  index  ) 

Reimplemented in MultiPeakFit.

End SIP_PYTUPLE Fit::errors (  ) 

Referenced by if().

virtual void Fit::fit (  )  [virtual]

Reimplemented in PolynomialFit, and MultiLinearRegression.

Fit::for (  )  [inline]

Reimplemented in NonLinear2DFit, and NonLinearFit.

References sipIsErr.

QString Fit::formula (  ) 

void Fit::generateFunction ( bool  ,
int  = 100 
)

virtual End void Fit::guessInitialValues (  )  [virtual]

Reimplemented in MultiPeakFit, LinearFit, and LinearSlopeFit.

Fit::if ( sipRes   )  [inline]

References residuals(), and sipRes.

Fit::if ( sipRes   )  [inline]

References errors(), and sipRes.

Fit::if ( sipRes   )  [inline]

References results(), and sipRes.

int Fit::iterations (  ) 

Returns the number of iterations performed by the fit procedure.

double Fit::lcl ( int  ,
double   
)

DataCurve* Fit::lclCurve (  ) 

Lower confidence limit curve.

virtual QString Fit::legendInfo (  )  [virtual]

bool Fit::load ( const QString &   ) 

double Fit::lowerBound ( const QString &  name  ) 

double Fit::lowerBound ( int  index  ) 

DataCurve* Fit::lplCurve (  ) 

Lower prediction limit curve.

int Fit::numDerivedParameters (  ) 

int Fit::numParameters (  ) 

QStringList Fit::parameterNames (  ) 

Table* Fit::parametersTable ( const QString &   ) 

double Fit::reducedChiSquare (  ) 

End SIP_PYTUPLE Fit::residuals (  ) 

Referenced by if().

DataCurve* Fit::residualsCurve (  ) 

Residuals curve.

Table* Fit::residualsTable (  ) 

Table window used for the output of the residuals.

SIP_PYTUPLE Fit::results (  ) 

Referenced by if().

PlotTable* Fit::resultsPlotTable (  ) 

double Fit::rmse (  ) 

double Fit::rSquare (  ) 

double Fit::rss (  ) 

virtual bool Fit::run (  )  [virtual]

Reimplemented from Filter.

bool Fit::save ( const QString &   ) 

void Fit::scaleErrors ( bool  yes = true  ) 

void Fit::setAlgorithm ( Algorithm   ) 

void Fit::setConfBandsTable ( Table  ) 

void Fit::setConstantParameter ( const QString &  name,
double  val 
)

void Fit::setConstantParameter ( int  index,
bool  on 
)

bool Fit::setDataFromTable ( Table ,
const QString &  ,
const QString &  ,
int  = 1,
int  = -1,
bool  = false 
) [virtual]

Reimplemented from Filter.

void Fit::setInitialGuess ( int  ,
double   
)

sipCpp Fit::setInitialGuesses ( values   ) 

void Fit::setInitialGuesses (   ...  ) 

void Fit::setInterval ( double  from,
double  to 
)

void Fit::setLclCurve ( DataCurve  ) 

void Fit::setLowerBound ( const QString &  name,
double  v 
)

void Fit::setLowerBound ( int  index,
double  v 
)

void Fit::setLplCurve ( DataCurve  ) 

void Fit::setParameterRange ( const QString &  name,
double  low,
double  up 
)

void Fit::setParameterRange ( int  index,
double  low,
double  up 
)

void Fit::setResidualsCurve ( DataCurve  ) 

void Fit::setResidualsTable ( Table  ) 

void Fit::setResultsPlotTable ( PlotTable  ) 

void Fit::setUclCurve ( DataCurve  ) 

void Fit::setUplCurve ( DataCurve  ) 

void Fit::setUpperBound ( const QString &  name,
double  v 
)

void Fit::setUpperBound ( int  index,
double  v 
)

bool Fit::setWeightingData ( WeightingMethod  ,
const QString &  = QString::null 
)

void Fit::showConfidenceLimits ( double  ,
bool  = false 
)

void Fit::showLegend (  ) 

void Fit::showPredictionLimits ( double   ) 

DataCurve* Fit::showResiduals (  ) 

Plot residuals and display data values in a new table.

DataCurve* Fit::showResidualsHistogram (  ) 

Plot histogram of the residuals.

int Fit::status (  ) 

Returns the status of the fit procedure or -1000 if not performed yet.

QString Fit::statusInfo ( int   ) 

String explaining the status of the fit procedure.

double Fit::sxx (  ) 

The total sum of squares (TSS) of X data about the mean. Used when calculating confidence/prediction bands.

double Fit::tss (  ) 

Returns the Total Sum of Squares.

double Fit::ucl ( int  ,
double   
)

DataCurve* Fit::uclCurve (  ) 

Upper confidence limit curve.

DataCurve* Fit::uplCurve (  ) 

Upper prediction limit curve.

double Fit::upperBound ( const QString &  name  ) 

double Fit::upperBound ( int  index  ) 

double Fit::weigthSum (  ) 

The sum of the weights.

double Fit::xMean (  ) 

The mean value of the x data.


Member Data Documentation

MethodCode double* Fit::errors = sipCpp->errors()

MethodCode int Fit::n = PyTuple_GET_SIZE(a0)

MethodCode double* Fit::residuals = sipCpp->residuals()

MethodCode double* Fit::results = sipCpp->results()

else Fit::sipIsErr = 1

Reimplemented in NonLinear2DFit, and NonLinearFit.

Referenced by for(), and MultiLinearRegression::if().

Fit::sipRes = PyTuple_New(size)

Referenced by if().

int Fit::size = sipCpp->numParameters()

delete Fit::values

double* Fit::values = new double[n]


The documentation for this class was generated from the following file:

Generated on Tue Apr 9 18:59:12 2024 for QtiPlot/Python-API by  doxygen 1.5.8