Package nz.org.riskscape.defaults.curves
Interface FitCurve<T>
- All Known Implementing Classes:
DefaultFitCurve
public interface FitCurve<T>
The results of a curve fitting operation, aka CurveFitter.fit(Object parameters, ObservedPoints points)
Can be used to yield a function and get various metadata about the fit itself.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
nz.org.riskscape.engine.function.UntypedFunction
-
Method Details
-
getFitter
CurveFitter<T> getFitter()- Returns:
- the thing that produced this fit
-
getFunction
nz.org.riskscape.engine.function.UntypedFunction getFunction()- Returns:
- the untyped part of a
RiskscapeFunction
that can be used to computef(x) = y
, should accept and return doubles.
-
getObservedPoints
ObservedPoints getObservedPoints()- Returns:
- that dataset that was used to fit this curve
-
getFitParameters
T getFitParameters()- Returns:
- the parameters, specific to each type of function, that were produced when this function was fit
-
getFitScore
double getFitScore()- Returns:
- an
r²
value for this curve against the original data points
-