Class GaussianFit

  • All Implemented Interfaces:
    Fit

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

      Constructors 
      Constructor Description
      GaussianFit​(org.apache.commons.math.optimization.fitting.GaussianFunction function)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getAmplitude()  
      double getDeviation()  
      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 getOffset()  
      double getParameter​(int order)
      Returns the specified fitted co-efficient.
      double[] getParameters()
      Returns an array of all fitted co-efficients
      double getPosition()  
      • Methods inherited from class java.lang.Object

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

      • GaussianFit

        public GaussianFit​(org.apache.commons.math.optimization.fitting.GaussianFunction function)
    • 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
      • getOffset

        public double getOffset()
      • getAmplitude

        public double getAmplitude()
      • getPosition

        public double getPosition()
      • getDeviation

        public double getDeviation()
      • 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