Click or drag to resize

RegressionBaseAddObservations Method

Adds the given observations to the model, and recalculates the model parameters.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public void AddObservations(
	DoubleMatrix observedPredictorValues,
	DoubleVector observations
)

Parameters

observedPredictorValues  DoubleMatrix
A matrix of predictor values where each row constitutes a set of values for the predictor variables.
observations  DoubleVector
A vector of observed values.
Exceptions
ExceptionCondition
MismatchedSizeExceptionThrown if the number of columns in the predictor matrix is not equal to the number of predictors, or if the number of rows in the predictor matrix is not equal to the length of the given vector of observations.
Remarks
If the model has an intercept parameter do not include the leading column of ones in the predictor matrix. It is accounted for in the model.
See Also