Adds a Variable to this collection.

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Function Add ( _
	variable As Variable _
) As Variable
C#
public Variable Add (
	Variable variable
)
C++
public:
Variable^ Add (
	Variable^ variable
)

Parameters

variable (Extreme.Statistics.Variable)
A Variable object.

Return Value

A reference to the added Variable.

Exceptions

ExceptionCondition
ArgumentNullExceptionvariable is nullNothingnullptr.
InvalidOperationExceptionThe number of items in this collection has reached its maximum. No more variables can be added.
DimensionMismatchExceptionThe number of observations in the variable is different from the number of observations in existing members of the collection.