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, _
	item As DateTime _
)
C#
public void Insert (
	int index,
	DateTime item
)
C++
public:
virtual void Insert (
	int index, 
	DateTime item
) sealed

Parameters

index (System.Int32)
The zero-based index at which value should be inserted.
item (System.DateTime)
The observation to insert.

Exceptions

ExceptionCondition
InvalidOperationException The variable is contained in a VariableCollection.
ArgumentOutOfRangeExceptionindex is less than zero or greater than the number of observations.