ListVector<T>.Grouping Property

Gets the grouping that describes how the flattened values are divided into lists.

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.2.0
C#
public IGrouping Grouping { get; }

Property Value

IGrouping
An IGrouping that partitions the flattened values into the lists of this vector.

Remarks

This property exposes the relationship between the list vector and its underlying grouping structure. Aggregating over the list vector is equivalent to flattening it and aggregating by this grouping:

C#
lv.AggregateLists(Aggregators.Sum) == lv.Flatten().AggregateBy(lv.Grouping, Aggregators.Sum)

See Also