UncertainMeasurementSampleTFitToLinearFunction Method

Fits the data to a linear combination of fit functions.

Definition

Namespace: Meta.Numerics.Statistics
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public UncertainMeasurementFitResult FitToLinearFunction(
	Func<T, double>[] functions
)

Parameters

functions  FuncT, Double
The component functions.

Return Value

UncertainMeasurementFitResult
A fit result containing the best-fit coefficients of the component functions and a χ2 test of the quality of the fit.

Exceptions

ArgumentNullExceptionfunctions is null.
InsufficientDataExceptionThere are fewer data points than fit parameters.

See Also