Package jisa.maths.fits
Interface Fit
-
- All Known Implementing Classes:
CosFit
,GaussianFit
,LinearFit
,PolyFit
public interface Fit
-
-
Method Summary
All Methods Instance Methods Abstract 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
double getParameter(int order)
Returns the specified fitted co-efficient.- Parameters:
order
- Which co-efficient- Returns:
- Fitted value
-
getParameters
double[] getParameters()
Returns an array of all fitted co-efficients- Returns:
- Array of co-efficients
-
getError
double getError(int order)
Returns the uncertainty on the specified fitted co-efficient.- Parameters:
order
- Which co-efficient- Returns:
- Error
-
getErrors
double[] getErrors()
Returns an array of all fitted co-efficient uncertainties.- Returns:
- Errors
-
getFunction
Function getFunction()
Returns a Function object that represents the fitted function.- Returns:
- Fitted function
-
-