Class PolyFit

  • All Implemented Interfaces:
    Fit
    Direct Known Subclasses:
    LinearFit

    public class PolyFit
    extends java.lang.Object
    implements Fit
    • Constructor Summary

      Constructors 
      Constructor Description
      PolyFit​(double[] coeffs, double[] errors)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getError​(int order)
      Returns the uncertainty on the specified fitted co-efficient.
      double[] getErrors()
      Returns an array of all fitted co-efficient uncertainties.
      Function getFunction()
      Returns a Function object that represents the fitted function.
      double getParameter​(int order)
      Returns the specified fitted co-efficient.
      double[] getParameters()
      Returns an array of all fitted co-efficients
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PolyFit

        public PolyFit​(double[] coeffs,
                       double[] errors)
    • Method Detail

      • getParameter

        public double getParameter​(int order)
        Description copied from interface: Fit
        Returns the specified fitted co-efficient.
        Specified by:
        getParameter in interface Fit
        Parameters:
        order - Which co-efficient
        Returns:
        Fitted value
      • getParameters

        public double[] getParameters()
        Description copied from interface: Fit
        Returns an array of all fitted co-efficients
        Specified by:
        getParameters in interface Fit
        Returns:
        Array of co-efficients
      • getError

        public double getError​(int order)
        Description copied from interface: Fit
        Returns the uncertainty on the specified fitted co-efficient.
        Specified by:
        getError in interface Fit
        Parameters:
        order - Which co-efficient
        Returns:
        Error
      • getErrors

        public double[] getErrors()
        Description copied from interface: Fit
        Returns an array of all fitted co-efficient uncertainties.
        Specified by:
        getErrors in interface Fit
        Returns:
        Errors
      • getFunction

        public Function getFunction()
        Description copied from interface: Fit
        Returns a Function object that represents the fitted function.
        Specified by:
        getFunction in interface Fit
        Returns:
        Fitted function