Returns a VariableCollection containing the observations from the current instance
in the specified range.
Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function CreateSubset ( _ startIndex As Integer, _ endIndex As Integer _ ) As VariableCollection |
| C# |
|---|
public VariableCollection CreateSubset ( int startIndex, int endIndex ) |
| C++ |
|---|
public: VariableCollection^ CreateSubset ( int startIndex, int endIndex ) |
Parameters
- startIndex (System.Int32)
- The zero-based index of the first observation in the range.
- endIndex (System.Int32)
- The zero-based index of the last observation in the range.
Return Value
A VariableCollection containing the data for the specified range.
Remarks
This method creates a copy of the variable's data. Changes to the original data
do not affect the observations in the subset.
Exceptions
| Exception | Condition |
|---|---|
| VariableCollection | startIndex is less than zero or greater than or equal to the number of observations.
-or- endIndex is less than zero or greater than or equal to the number of observations. |