Documentation of 'jasext.hist.fitter.LeastSquaresFit' Java class
LeastSquaresFit
jasext.hist.fitter

Class LeastSquaresFit

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Runnable, java.util.Observer


    public class LeastSquaresFit
    extends Fitter
    See Also:
    Serialized Form
    • Constructor Detail

      • LeastSquaresFit

        public LeastSquaresFit()
    • Method Detail

      • fit

        public void fit(Fittable1DFunction func,
                        double[] x,
                        double[] y,
                        double[] sigmaY)
                 throws FitFailed
        This algorithm based on CURFIT program from "Data Reduction and Error Analysis for the Physical Sciences" by Philip R Bevington, Page 237. It performs a least squared fit using the Marquardt algorithm.
        Parameters:
        func - The function to be fit
        x - The x values of the points to be fit
        y - The y values of the points to be fit
        sigmaY - The errors (assumed symmetric) on the y values
        Throws:
        FitFailed - if the fit was not successful

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.