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#
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

AggregateInto<T, U>(Vector<T>, Aggregator<T, U>, Vector<U>) Aggregates the specified vector over each group and returns the result.
AggregateInto<T, U>(Vector<T>, Vector<T>, Aggregator2<T, U>, Vector<U>) Aggregates the specified vector over each group and returns the result.
As<T> Returns a strongly typed version of a grouping object.
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)
GetCounts Returns a histogram of the number of observations in each group.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetIndexes Gets a sequence of indexes for the grouping.
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also