Represents an algorithm that calculates a linear least squares fit of a curve.
SystemObject Extreme.Mathematics.CurvesCurveFitter Extreme.Mathematics.CurvesLinearCurveFitter
Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.17114.0)
public sealed class LinearCurveFitter : CurveFitter
Public NotInheritable Class LinearCurveFitter
public ref class LinearCurveFitter sealed : public CurveFitter
type LinearCurveFitter =
The LinearCurveFitter type exposes the following members.
Use the LinearCurveFitter class to fit data
to a curve by the method of least squares.
The curve is specified by the Curve property.
The parameters of this curve are modified to produce the best fit.
The curve must be of a type that inherits from LinearCombination,
This includes instances of Polynomial and ChebyshevSeries.
The data is supplied as Vector objects
through the XValues and YValues properties.
By default, the observations are unweighted. You can supply a
weighting method in two ways. You can set the WeightFunction
property to a function of two variables delegate that computes the weight
for each observation. The WeightFunctions class provides predefined
delegates for the most common weight functions.
Alternatively, you can set the individual weights by setting the WeightVector
property to a Vector that contains the weight for each individual observation.
The Fit method performs the actual curve fit.
By default, a QR decomposition is used. You can change the default behavior
by setting the Method property to one of the LinearLeastSquaresMethod
Supported in: 6.0, 5.x, 4.x