|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ModelFitting
Model fitting instances can fit measurements to a particular model. Once
the measured data is fitted to the model with fit(), the fitted
model parameters getFittedParameters() can be retrieved, as well
as the underlying data model getDataModel() that holds the link
to the original measurements as well as the model fit.
| Method Summary | |
|---|---|
List<Variable> |
fit()
Tries to fit the measures to the underlying data model. |
double |
getChi2()
Returns the least-square chi2 value, weighted to the measurement errors, i.e. |
DataModel |
getDataModel()
Returns the data model constructed out of the fitted data. |
List<Variable> |
getFittedParameters()
Returns the fitted parameters after a successful call to fit(). |
double |
getR2()
Returns the coefficient of determination, R², which is in a linear model the square of the correlation coefficient. |
double |
getRms()
Returns the RMS, which is the square root of the average residual squared of the model. |
DataModel |
prepareFit(VectorG[] data)
Initializing the fitting process by preparing the underlying data model. |
double |
qualityOfFit()
Returns a quality indicator for the fit, if in doubt return the chi2-expectation value. |
boolean |
setConstant(Variable to)
Sets a parameter as a constant for the fit. |
boolean |
setInitialCondition(Variable to)
Sets a parameter as an initial condition for the fit. |
| Method Detail |
|---|
DataModel prepareFit(VectorG[] data)
getDataModel().
data - An array of measurements. Each vector contains dependant
and independant variables and eventually their errors.
List<Variable> fit()
prepareFit(vec_math.VectorG[]). The solution returned is
also retrievable later via getFittedParameters()
boolean setInitialCondition(Variable to)
boolean setConstant(Variable to)
DataModel getDataModel()
prepareFit(vec_math.VectorG[]) has
commenced, independant of (later) fitting success.
List<Variable> getFittedParameters()
fit().
double qualityOfFit()
double getRms()
double getChi2()
double getR2()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||