Package jisa.maths.fits
Class GaussianFit
- java.lang.Object
-
- jisa.maths.fits.GaussianFit
-
-
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 doublegetAmplitude()doublegetDeviation()doublegetError(int order)Returns the uncertainty on the specified fitted co-efficient.double[]getErrors()Returns an array of all fitted co-efficient uncertainties.FunctiongetFunction()Returns a Function object that represents the fitted function.doublegetOffset()doublegetParameter(int order)Returns the specified fitted co-efficient.double[]getParameters()Returns an array of all fitted co-efficientsdoublegetPosition()
-
-
-
Method Detail
-
getParameter
public double getParameter(int order)
Description copied from interface:FitReturns the specified fitted co-efficient.- Specified by:
getParameterin interfaceFit- Parameters:
order- Which co-efficient- Returns:
- Fitted value
-
getParameters
public double[] getParameters()
Description copied from interface:FitReturns an array of all fitted co-efficients- Specified by:
getParametersin interfaceFit- 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:FitReturns the uncertainty on the specified fitted co-efficient.
-
getErrors
public double[] getErrors()
Description copied from interface:FitReturns an array of all fitted co-efficient uncertainties.
-
getFunction
public Function getFunction()
Description copied from interface:FitReturns a Function object that represents the fitted function.- Specified by:
getFunctionin interfaceFit- Returns:
- Fitted function
-
-