UncertainMeasurementSampleTFitToFunction Method |
Fits the data to an arbitrary parameterized function.
Namespace:
Meta.Numerics.Statistics
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax public UncertainMeasurementFitResult FitToFunction(
Func<double[], T, double> function,
double[] start
)
Public Function FitToFunction (
function As Func(Of Double(), T, Double),
start As Double()
) As UncertainMeasurementFitResult
public:
UncertainMeasurementFitResult^ FitToFunction(
Func<array<double>^, T, double>^ function,
array<double>^ start
)
member FitToFunction :
function : Func<float[], 'T, float> *
start : float[] -> UncertainMeasurementFitResult
Parameters
- function
- Type: SystemFuncDouble, T, Double
The fit function. - start
- Type: SystemDouble
An initial guess at the parameters.
Return Value
Type:
UncertainMeasurementFitResultA fit result containing the best-fitting function parameters
and a χ
2 test of the quality of the fit.
Exceptions See Also