CurveFitter<T>.Fit Method

Calculates the least-squares fit.

DefinitionPermalink

Namespace: Numerics.NET.Curves.Generic
Assembly: Numerics.NET.Generic (in Numerics.NET.Generic.dll) Version: 9.1.0
C#
public Curve<T> Fit()

Return ValuePermalink

Curve<T>
A reference to the Curve that best fits the data.

ExceptionsPermalink

InvalidOperationException The XValues have not been set.

-or-

The YValues have not been set.

-or-

The Curve has not been set.

DimensionMismatchException The length of XValues does not equal the lenght of YValues.
InsufficientDataException The number of data points is less than the number of curve parameters.

See AlsoPermalink