Click or drag to resize

RegressionBaseAddObservation Method

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

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public void AddObservation(
	DoubleVector observedPredictorValues,
	double observation
)

Parameters

observedPredictorValues  DoubleVector
A vector of predictor values.
observation  Double
An observation.
Exceptions
ExceptionCondition
MismatchedSizeExceptionThrown if the length of the predictor vector is not equal to the number of predictors in the model, as indicated by the NumberOfPredictors property.
Remarks
If the model has an intercept parameter, do not include the leading one in the predictor vector. It is accounted for in the model.
See Also