Adds a predictor to the model, and recalculates the model parameters.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public void AddPredictor( DoubleVector predictorValues ) |
| Visual Basic (Declaration) |
|---|
Public Sub AddPredictor ( _ predictorValues As DoubleVector _ ) |
| Visual C++ |
|---|
public: void AddPredictor( DoubleVector^ predictorValues ) |
Parameters
- predictorValues
- Type: CenterSpace.NMath.Core..::.DoubleVector
A vector of predictor values.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.MismatchedSizeException | Thrown if the length of the given vector is not equal to the number of rows in the regression matrix (also equal to length of the observation vector). |