|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--jas.hist.Fitter | +--jasext.hist.fitter.LeastSquaresFit
Fields inherited from class jas.hist.Fitter |
FAILED, FIT, FITTING, NOTREADYTOFIT, OUTAHERE, READYTOFIT |
Constructor Summary | |
LeastSquaresFit()
|
Method Summary | |
void |
fit(Fittable1DFunction func,
double[] x,
double[] y,
double[] sigmaY)
This algorithm based on CURFIT program from "Data Reduction and Error Analysis for the Physical Sciences" by Philip R Bevington, Page 237. |
double |
getChiSquared()
|
double[] |
getParameterSigmas()
|
Methods inherited from class jas.hist.Fitter |
dispose, fit, getData, getFunction, getState, run, setData, setFunction, setPercentComplete, start, stop, update |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LeastSquaresFit()
Method Detail |
public void fit(Fittable1DFunction func, double[] x, double[] y, double[] sigmaY) throws FitFailed
fit
in class Fitter
func
- The function to be fitx
- The x values of the points to be fity
- The y values of the points to be fitsigmaY
- The errors (assumed symmetric) on the y valuesFitFailed
- if the fit was not successfulpublic double getChiSquared()
getChiSquared
in class Fitter
public double[] getParameterSigmas()
getParameterSigmas
in class Fitter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |