Returns a slice of the current index.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public virtual Index<T> GetSlice(
int startIndex,
int endIndex,
int stride
)
Public Overridable Function GetSlice (
startIndex As Integer,
endIndex As Integer,
stride As Integer
) As Index(Of T)
public:
virtual Index<T>^ GetSlice(
int startIndex,
int endIndex,
int stride
)
abstract GetSlice :
startIndex : int *
endIndex : int *
stride : int -> Index<'T>
override GetSlice :
startIndex : int *
endIndex : int *
stride : int -> Index<'T>
Parameters
- startIndex
- Type: SystemInt32
The zero-based index of the first element
in the new index. - endIndex
- Type: SystemInt32
The zero-based index of the last element
in the new index. - stride
- Type: SystemInt32
The number of items between elements in the new index.
Return Value
Type:
IndexTA new index of the same type.
Exception | Condition |
---|
ArgumentOutOfRangeException | startIndex is less than zero or greater than the length
of the index. -or- endIndex is less than zero or greater than the length
of the index. |
Reference