Gets the least squares fit of target data in terms of
the components of the
FunctionBasis.
Namespace: Extreme.Mathematics.CurvesAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.17114.0)
public virtual LinearCombination LeastSquaresFit(
Vector<double> xValues,
Vector<double> yValues
)
Public Overridable Function LeastSquaresFit (
xValues As Vector(Of Double),
yValues As Vector(Of Double)
) As LinearCombination
public:
virtual LinearCombination^ LeastSquaresFit(
Vector<double>^ xValues,
Vector<double>^ yValues
)
abstract LeastSquaresFit :
xValues : Vector<float> *
yValues : Vector<float> -> LinearCombination
override LeastSquaresFit :
xValues : Vector<float> *
yValues : Vector<float> -> LinearCombination
Parameters
- xValues
- Type: Extreme.MathematicsVectorDouble
A vector containing
the data points for the fit. - yValues
- Type: Extreme.MathematicsVectorDouble
A vector containing
the data values corresponding to the data points
in xValues.
Return Value
Type:
LinearCombinationA
LinearCombination that is the
least squares fit of the data in terms of this
FunctionBasis.
Numerical Libraries
Supported in: 6.0
Reference