Grouping<TKey> Class
Represents a grouping of elements with an index of the specified type.
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
public abstract class Grouping<TKey> : IGrouping
- Inheritance
- Object → Grouping<TKey>
- Implements
- IGrouping
Type Parameters
- TKey
- The element type of the index.
Remarks
Use the Grouping<TKey> type to represent a grouping of elements where each group has a key of type TKey. Groupings can be used in aggregation and pivoting operations.
Grouping objects are created using static methods of the Grouping class.
Constructors
Grouping<TKey> | Constructs a new grouping object with the specified index. |
Properties
Count | Gets the number of groups. |
Index | Gets the index that contains the unique keys to the groups. |
Item | Gets a sequence of indexes for the grouping with the specified key. |
Methods
Aggregate | Aggregates the specified vector over each group and returns the result. |
Aggregate | Aggregates the specified vector over each group and returns the result. |
As<T> | Returns a strongly typed version of a grouping object. |
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 a histogram of the number of observations in each group. |
Get | Serves as the default hash function. (Inherited from Object) |
Get | Gets a sequence of indexes for the grouping. |
Get | Gets the Type of the current instance. (Inherited from Object) |
Memberwise | Creates a shallow copy of the current Object. (Inherited from Object) |
ToString | Returns a string that represents the current object. (Inherited from Object) |