Package com.irurueta.numerical.fitting
Class Fitter
java.lang.Object
com.irurueta.numerical.fitting.Fitter
- Direct Known Subclasses:
MultiDimensionFitter
,MultiVariateFitter
,SingleDimensionFitter
,StraightLineFitter
Base class for function fitters used to estimate function parameters along
with their covariance matrix and chi square value
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Indicates whether result has been estimated and is available for retrieval -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
fit()
Fits a function to provided data so that parameters associated to that function can be estimated along with their covariance matrix and chi square valueabstract boolean
isReady()
Indicates whether this instance is ready because enough input data has been provided to start the fitting processboolean
Returns boolean indicating whether result has been estimated and is available for retrieval
-
Field Details
-
resultAvailable
protected boolean resultAvailableIndicates whether result has been estimated and is available for retrieval
-
-
Constructor Details
-
Fitter
public Fitter()
-
-
Method Details
-
isResultAvailable
public boolean isResultAvailable()Returns boolean indicating whether result has been estimated and is available for retrieval- Returns:
- true if result has been estimated and is available for retrieval
-
isReady
public abstract boolean isReady()Indicates whether this instance is ready because enough input data has been provided to start the fitting process- Returns:
- true if this fitter is ready, false otherwise
-
fit
Fits a function to provided data so that parameters associated to that function can be estimated along with their covariance matrix and chi square value- Throws:
FittingException
- if fitting failsNotReadyException
- if enough input data has not yet been provided
-