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

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public void AddObservation(
	DoubleVector observedPredictorValues,
	double observation
)
Visual Basic (Declaration)
Public Sub AddObservation ( _
	observedPredictorValues As DoubleVector, _
	observation As Double _
)
Visual C++
public:
void AddObservation(
	DoubleVector^ observedPredictorValues, 
	double observation
)

Parameters

observedPredictorValues
Type: CenterSpace.NMath.Core..::.DoubleVector
A vector of predictor values.
observation
Type: System..::.Double
An observation.

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.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.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.

See Also