Package jisa.maths.fits
Class PolyFit
- java.lang.Object
-
- jisa.maths.fits.PolyFit
-
-
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
-
-
-
Method Detail
-
getParameter
public double getParameter(int order)
Description copied from interface:Fit
Returns the specified fitted co-efficient.- Specified by:
getParameter
in interfaceFit
- 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 interfaceFit
- 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.
-
getErrors
public double[] getErrors()
Description copied from interface:Fit
Returns an array of all fitted co-efficient uncertainties.
-
getFunction
public Function getFunction()
Description copied from interface:Fit
Returns a Function object that represents the fitted function.- Specified by:
getFunction
in interfaceFit
- Returns:
- Fitted function
-
-