Inserts an observation to the variable at the specified index.

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

Syntax

Visual Basic (Declaration)
Public Overrides Sub Insert ( _
	index As Integer, _
	value As Object _
)
C#
public override void Insert (
	int index,
	Object value
)
C++
public:
virtual void Insert (
	int index, 
	Object^ value
) override

Parameters

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

Remarks

This is the generic overload of this method. value can be any object that can be converted to a DateTime value.

Exceptions

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