Inserts an observation to the variable at the specified index.

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

Syntax

Visual Basic (Declaration)
Public Sub Insert ( _
	index As Integer, _
	ParamArray values As Object() _
)
C#
public void Insert (
	int index,
	params Object[] values
)
C++
public:
void Insert (
	int index, 
	... array<Object^>^ values
)

Parameters

index (System.Int32)
The zero-based index at which value should be inserted.
values ()
A variable number of objects that contain the observations for each variable.

Exceptions

ExceptionCondition
ArgumentNullExceptionvalues is nullNothingnullptr.
DimensionMismatchException The length of values does not match the number of variables in the collection.
InvalidCastExceptionOne of the objects in values cannot be converted to a valid observation for the corresponding variable.