Class PolyAndGaussianFit
java.lang.Object
com.nr.model.Fitmrq
cnuphys.splot.fit.PolyAndGaussianFit
- All Implemented Interfaces:
IValueGetter
-
Field Summary
Fields inherited from class com.nr.model.Fitmrq
a, alpha, chisq, covar, ia -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FGaussPolycreateFGaussPoly(int numGauss, int numPoly) doubleGet the chi square of the fitdouble[][]Get the covariance matrixdouble[]Get the fit parametersdoublevalue(double x) Methods inherited from class com.nr.model.Fitmrq
covsrt, fit, free, hold, mrqcof
-
Constructor Details
-
PolyAndGaussianFit
- Parameters:
fit- the fit datatolerance-
-
-
Method Details
-
value
public double value(double x) - Specified by:
valuein interfaceIValueGetter
-
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
-
createFGaussPoly
-