Subset Class

Represents a set of indexes that can be used to select elements in a Vector<T> or rows in a IDataFrame.

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
[SerializableAttribute]
public class Subset : IEnumerable<int>, IEnumerable
Inheritance
Object  →  Subset
Implements
IEnumerable<Int32>, IEnumerable

Remarks

Use the Subset object to select a subset of the elements in a Vector<T> or the rows in a IDataFrame.

Constructors

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.

Properties

EndIndex Gets the index of the observation past the last visible observation.
IsContiguous Gets whether the subset selects a contiguous range which may wrap around the end of the collection.
IsEmpty Gets whether the subset is empty.
IsSlice Gets whether the subset selects a contiguous range.
Item Gets the position of the observation at the specified index.
Length Gets the number of elements in the subset.
OriginalLength Gets the length of the original data.
StartIndex Gets the index of the first visible observation.

Methods

ApplySort Returns a subset that applies the specified sort subset to the current subset.
Complement Returns a Subset that is the complement of the specified subset.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetEnumerator Returns an enumerator that iterates over the indexes in the subset.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetReverse Returns a subset that lists the observations of the current subset in reverse order.
GetTypeGets the Type of the current instance.
(Inherited from Object)
Intersection Returns a subset representing the intersection of two subsets.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Reverse Returns a subset that reverses the observations.
ToStringReturns a string that represents the current object.
(Inherited from Object)
Union Returns a subset that represents the union of two subsets.

Operators

BitwiseAnd(Subset, Subset) Returns a subset representing the intersection of two subsets.
BitwiseOr(Subset, Subset) Returns a subset that represents the union of two subsets.
OnesComplement(Subset) Returns a Subset that is the complement of the specified subset.

Fields

Empty An empty subset of any length.

Extension Methods

Group<Int32> Returns a grouping by the unique elements in a sequence.
(Defined by Grouping)
Group<Int32> Returns a grouping by the unique elements in a sequence using the specified comparer to determine equality.
(Defined by Grouping)
Sum<Int32> Computes the sum of the sequence of values.
(Defined by ArrayMath)
Sum<Int32, U> Computes the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by ArrayMath)

See Also