Class PolyAndGaussianFit

java.lang.Object
com.nr.model.Fitmrq
cnuphys.splot.fit.PolyAndGaussianFit
All Implemented Interfaces:
IValueGetter

public class PolyAndGaussianFit extends com.nr.model.Fitmrq implements IValueGetter
  • Constructor Details

    • PolyAndGaussianFit

      public PolyAndGaussianFit(Fit fit)
      Parameters:
      fit - the fit data
      tolerance -
  • Method Details

    • value

      public double value(double x)
      Specified by:
      value in interface IValueGetter
    • 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

      public static FGaussPoly createFGaussPoly(int numGauss, int numPoly)