Package cnuphys.splot.fit
Class LineFit
java.lang.Object
com.nr.model.Fitab
cnuphys.splot.fit.LineFit
- All Implemented Interfaces:
- IValueGetter
- 
Field SummaryFields inherited from class com.nr.model.Fitaba, b, chi2, q, sig, siga, sigb, sigdat, x, y
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
LineFitCreate a Error function Fit and perform the fit. This is for data with y errors only. If there are x errors too, use LinearExyFit.- Parameters:
- fit- the fit data
- Throws:
- IllegalArgumentException
 
 
- 
- 
Method Details- 
getSlopepublic double getSlope()Get the slope of the fit- Returns:
- the slope of the fit
 
- 
getInterceptpublic double getIntercept()Get the intercept of the fit- Returns:
- the intercept of the fit
 
- 
getSlopeSigmapublic double getSlopeSigma()Get the error estimate in the slope- Returns:
- the error estimate in the slope
 
- 
getInterceptSigmapublic double getInterceptSigma()Get the intercept estimate- Returns:
- the intercept estimate
 
- 
getChiSquarepublic double getChiSquare()Get the chi square of the fit- Returns:
- the chi square
 
- 
valuepublic double value(double x) - Specified by:
- valuein interface- IValueGetter
 
 
-