Solves the least squares problem Ax = b for x using the method
of iteratively Reweighted least squares.
Namespace:
CenterSpace.NMath.MatrixAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public DoubleVector Solve( DoubleMatrix A, DoubleVector b, bool addIntercept ) |
| Visual Basic (Declaration) |
|---|
Public Function Solve ( _ A As DoubleMatrix, _ b As DoubleVector, _ addIntercept As Boolean _ ) As DoubleVector |
| Visual C++ |
|---|
public: DoubleVector^ Solve( DoubleMatrix^ A, DoubleVector^ b, bool addIntercept ) |
Parameters
- A
- Type: CenterSpace.NMath.Core..::.DoubleMatrix
A matrix.
- b
- Type: CenterSpace.NMath.Core..::.DoubleVector
The right hand side of the problem.
- addIntercept
- Type: System..::.Boolean
If true a column of ones is prepended to the data in A representing a constant term in the model, if false A used as is. Note that in either case the input matrix itself is not not changed.