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#
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
[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( | Constructs a new Subset from an array of indexes. |
Subset( | Constructs a new Subset from a range of indexes. |
Properties
End | 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. |
Original | Gets the length of the original data. |
Start | Gets the index of the first visible observation. |
Methods
Apply | 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. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
Get | Returns an enumerator that iterates over the indexes in the subset. |
Get | Serves as the default hash function. (Inherited from Object) |
Get | Returns a subset that lists the observations of the current subset in reverse order. |
Get | Gets the Type of the current instance. (Inherited from Object) |
Intersection | Returns a subset representing the intersection of two subsets. |
Memberwise | Creates a shallow copy of the current Object. (Inherited from Object) |
Reverse | Returns a subset that reverses the observations. |
ToString | Returns a string that represents the current object. (Inherited from Object) |
Union | Returns a subset that represents the union of two subsets. |
Operators
Bitwise | Returns a subset representing the intersection of two subsets. |
Bitwise | Returns a subset that represents the union of two subsets. |
Ones | 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) |