Class LinearExyFit

java.lang.Object
com.nr.model.Fitexy
cnuphys.splot.fit.LinearExyFit
All Implemented Interfaces:
IValueGetter

public class LinearExyFit extends com.nr.model.Fitexy implements IValueGetter
  • Nested Class Summary Link icon

    Nested classes/interfaces inherited from class com.nr.model.Fitexy Link icon

    com.nr.model.Fitexy.Chixy
  • Field Summary Link icon

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

    a, aa, b, chi2, offs, q, siga, sigb, sx, sy, ww, xx, yy
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    Create a Error function Fit and perform the fit.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    double
    Get the chi square of the fit
    double
    Get the intercept of the fit
    double
    Get the intercept estimate
    double
    Get the slope of the fit
    double
    Get the error estimate in the slope
    static void
    main(String[] arg)
     
    double
    value(double x)
     

    Methods inherited from class java.lang.Object Link icon

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

    • LinearExyFit Link icon

      public LinearExyFit(Fit fit) throws IllegalArgumentException
      Create a Error function Fit and perform the fit. This is for data with y errors only. If there are x errors too, use LinearXYE.
      Parameters:
      fit - the fit data
      Throws:
      IllegalArgumentException
  • Method Details Link icon

    • getSlope Link icon

      public double getSlope()
      Get the slope of the fit
      Returns:
      the slope of the fit
    • getIntercept Link icon

      public double getIntercept()
      Get the intercept of the fit
      Returns:
      the intercept of the fit
    • getSlopeSigma Link icon

      public double getSlopeSigma()
      Get the error estimate in the slope
      Returns:
      the error estimate in the slope
    • getInterceptSigma Link icon

      public double getInterceptSigma()
      Get the intercept estimate
      Returns:
      the intercept estimate
    • 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
    • main Link icon

      public static void main(String[] arg)