Click or drag to resize
UncertainMeasurementSampleFitToPolynomial Method
Fits the data to a polynomial.

Namespace:  Meta.Numerics.Statistics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 3.1.0.0 (3.1.0.0)
Syntax
public FitResult FitToPolynomial(
	int order
)

Parameters

order
Type: SystemInt32
The order of the polynomial to fit.

Return Value

Type: FitResult
A fit result containg 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
ExceptionCondition
ArgumentOutOfRangeExceptionorder is negative.
InsufficientDataExceptionThere are more polynomial coefficients than data points.
See Also