Package cnuphys.splot.fit
Class PolyFit
java.lang.Object
com.nr.model.Fitsvd
cnuphys.splot.fit.PolyFit
- All Implemented Interfaces:
IValueGetter
-
Field Summary
Fields inherited from class com.nr.model.Fitsvd
a, chisq, covar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the chi square of the fitdouble[][]
Get the covariance matrixdouble[]
Get the fit parametersdouble
value
(double x) Methods inherited from class com.nr.model.Fitsvd
fit, row
-
Constructor Details
-
PolyFit
- Parameters:
fit
- the fit data
-
-
Method Details
-
getFitParameters
public double[] getFitParameters()Get the fit parameters- Returns:
- the fit parameters
-
getCovarianceMatrix
public double[][] getCovarianceMatrix()Get the covariance matrix- Returns:
- the covariance matrix
-
getChiSquare
public double getChiSquare()Get the chi square of the fit- Returns:
- the chi square
-
value
public double value(double x) - Specified by:
value
in interfaceIValueGetter
-