Curve Fitter<T>.Fit Method
Calculates the least-squares fit.
Definition
Namespace: Numerics.NET.Curves.Generic
Assembly: Numerics.NET.Generic (in Numerics.NET.Generic.dll) Version: 9.0.1
C#
A reference to the Curve that best fits the data.
Assembly: Numerics.NET.Generic (in Numerics.NET.Generic.dll) Version: 9.0.1
public Curve<T> Fit()
Return Value
Curve<T>A reference to the Curve that best fits the data.
Exceptions
Invalid |
The XValues have not been set.
-or- The YValues have not been set. -or- The Curve has not been set. |
Dimension | The length of XValues does not equal the lenght of YValues. |
Insufficient | The number of data points is less than the number of curve parameters. |