UncertainMeasurementSampleFitToPolynomial Method

Fits the data to a polynomial.

Definition

Namespace: Meta.Numerics.Statistics
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public UncertainMeasurementFitResult FitToPolynomial(
	int order
)

Parameters

order  Int32
The order of the polynomial to fit.

Return Value

UncertainMeasurementFitResult
A fit result containing the best-fit polynomial coefficients, in order of ascending power from 0 to order, and a χ2 test of the quality of the fit.

Exceptions

ArgumentOutOfRangeExceptionorder is negative.
InsufficientDataExceptionThere are more polynomial coefficients than data points.

See Also