Adds the given observations 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 AddObservations(
	DoubleMatrix observedPredictorValues,
	DoubleVector observations
)
Visual Basic (Declaration)
Public Sub AddObservations ( _
	observedPredictorValues As DoubleMatrix, _
	observations As DoubleVector _
)
Visual C++
public:
void AddObservations(
	DoubleMatrix^ observedPredictorValues, 
	DoubleVector^ observations
)

Parameters

observedPredictorValues
Type: CenterSpace.NMath.Core..::.DoubleMatrix
A matrix of predictor values where each row constitutes a set of values for the predictor variables.
observations
Type: CenterSpace.NMath.Core..::.DoubleVector
A vector of observed values.

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.

Exceptions

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

See Also