Sets the regression matrix, observation vector, and intercept option to the
specified values, and recalculates the model parameters.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public void SetRegressionData( DoubleMatrix A, DoubleVector obs, bool addIntercept ) |
| Visual Basic (Declaration) |
|---|
Public Sub SetRegressionData ( _ A As DoubleMatrix, _ obs As DoubleVector, _ addIntercept As Boolean _ ) |
| Visual C++ |
|---|
public: void SetRegressionData( DoubleMatrix^ A, DoubleVector^ obs, bool addIntercept ) |
Parameters
- A
- Type: CenterSpace.NMath.Core..::.DoubleMatrix
A regression matrix.
- obs
- Type: CenterSpace.NMath.Core..::.DoubleVector
A vector of observations.
- addIntercept
- Type: System..::.Boolean
Intercept option. Set to true if you want the model to contain an intercept parameter that is not accounted for in the input regression matrix (in the form of a leading column of ones).
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.MismatchedSizeException | Thrown if the number of rows in the regression matrix is not equal to the length of the observation vector. |