Class ErfcFit

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

public class ErfcFit extends com.nr.model.Fitmrq implements IValueGetter
  • Field Summary Link icon

    Fields inherited from class com.nr.model.Fitmrq Link icon

    a, alpha, chisq, covar, ia
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    ErfcFit(Fit fit)
    Create a Error function Fit
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    double
    Get the chi square of the fit
    double[][]
    Get the covariance matrix
    double[]
    Get the fit parameters
    static double[]
    A method to generate an initial guess
    double
    value(double x)
     

    Methods inherited from class com.nr.model.Fitmrq Link icon

    covsrt, fit, free, hold, mrqcof

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details Link icon

  • Method Details Link icon

    • initialGuess Link icon

      public static double[] initialGuess(Fit fit)
      A method to generate an initial guess
      Parameters:
      fit - the fit data
      Returns:
      initial guess
    • getFitParameters Link icon

      public double[] getFitParameters()
      Get the fit parameters
      Returns:
      the fit parameters
    • getCovarianceMatrix Link icon

      public double[][] getCovarianceMatrix()
      Get the covariance matrix
      Returns:
      the covariance matrix
    • getChiSquare Link icon

      public double getChiSquare()
      Get the chi square of the fit
      Returns:
      the chi square
    • value Link icon

      public double value(double x)
      Specified by:
      value in interface IValueGetter