Constructs a new LeastSquaresSolver
from the matrix of observations and the vector of
Extreme.Numerics.Version4x.Net40 (in Extreme.Numerics.Version4x.Net40.dll) Version: 4.2.11333.0 (5.0.12317.0)
Public Sub New (
observations As SingleDenseMatrix,
outcomes As SingleVector
observations : SingleDenseMatrix *
outcomes : SingleVector -> SingleLeastSquaresSolver
- Type: Extreme.Mathematics.LinearAlgebraSingleDenseMatrix
A SingleDenseMatrix whose rows
contain the observations of the least squares problem.
- Type: Extreme.MathematicsSingleVector
A single-precision vector containing
the outcomes of each of the observations in
Use this constructor to create a least squares
solution based on the matrix of observations and the
vector of outcomes. The number of rows in observations
must equal the number of elements in
. In addition, the number of rows
must be greater than or equal
to the number of columns.
Each row in the matrix observations corresponds to an observation. The corresponding
element of the vector specifies
the outcome produced by this observation.
Because there are at least as many equations
as there are unknowns, an exact solution is not possible.
The goal is therefore to minimize the two-norm of
the residual vector Ax - b, where A corresponds to
observations and b corresponds to
The vector x with this property is the solution
to this problem with minimal norm.
Supported in: 5.x, 4.x