Subset Constructor

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Subset(Int32, Int32[]) Constructs a new Subset from an array of indexes.
Subset(Int32, Int32, Int32) Constructs a new Subset from a range of indexes.

Subset(Int32, Int32[])

Constructs a new Subset from an array of indexes.
C#
public Subset(
	int length,
	int[] indexes
)

Parameters

length  Int32
The length of the subset.
indexes  Int32[]
An integer array containing the indexes of the visible observations.

Remarks

All values in indexes must be greater than or equal to zero and less than length.

Exceptions

ArgumentNullExceptionindexes is null.
ArgumentOutOfRangeExceptionlength is less than zero.
ArgumentException One of the elements of indexes is less than zero or greater than or equal to length.

Subset(Int32, Int32, Int32)

Constructs a new Subset from a range of indexes.
C#
public Subset(
	int length,
	int startIndex,
	int endIndex
)

Parameters

length  Int32
The length of the subset.
startIndex  Int32
The index of the first visible observation.
endIndex  Int32
The index of the observation past the last visible observation.

Remarks

Both startIndex and endIndex must be greater than or equal to zero and less than or equal to length. If startIndex is equal to endIndex, the subset contains all elements.

Exceptions

ArgumentOutOfRangeExceptionlength is less than zero.

-or-

startIndex is less than zero or greater than length..

-or-

endIndex is less than zero or greater than length..

See Also