Grouping Class

Represents a collection of keys mapped to groups of indices.

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static class Grouping
Inheritance
Object  →  Grouping

Remarks

Use the Grouping class to construct or represent a groups of indices and their corresponding keys. Examples of groupings are moving windows and partitions.

Methods

ByQuantile<T>(IList<T>, IList<Double>) Constructs a grouping based on the quantile ranks.
ByQuantile<T>(IList<T>, Int32) Constructs a grouping based on the quantile ranks.
ByValue<T>(IList<T>) Constructs a grouping based on the values in the specified list.
ByValue<T>(IList<T>, IntervalIndex<T>) Constructs a grouping based on binned values.
ByValue<T>(IList<T>, IEqualityComparer<T>) Constructs a grouping based on the values in the specified list.
ByValue<T>(IList<T>, T, T, Int32) Constructs a grouping based on binned values.
ExpandingWindow(IIndex) Constructs a grouping that represents an expanding window.
ExpandingWindow<T>(Index<T>) Constructs a grouping that represents an expanding window.
Group<T>(IEnumerable<T>) Returns a grouping by the unique elements in a sequence.
Group<T>(IList<T>) Returns a grouping by the unique elements in a list.
Group<T>(IEnumerable<T>, IEqualityComparer<T>) Returns a grouping by the unique elements in a sequence using the specified comparer to determine equality.
Group<T>(IList<T>, IEqualityComparer<T>) Returns a grouping by the unique elements in a list using the specified comparer to determine equality.
Partition(IList<Int32>) Constructs a grouping that represents a collection of non-overlapping chunks of fixed length.
Partition(Int32, Int32) Constructs a grouping that represents a collection of non-overlapping chunks of fixed length.
Partition<T>(IList<T>, Int32, Boolean, Boolean) Constructs a grouping that represents a collection of non-overlapping chunks of fixed length.
Pivot<R, C> Creates a new two-dimensional grouping from the specified row and column keys.
RangeWindow(Index<DateTime>, TimeSpan, Direction) Constructs a grouping that represents a moving window whose keys are within the specified distance of each other.
RangeWindow(Index<Double>, Double, Direction) Constructs a grouping that represents a moving window whose keys are within the specified distance of each other.
Resample(Index<DateTime>, Recurrence, Direction) Creates a grouping that resamples the observations according to the specified recurrence.
Resample<R>(Index<R>, Index<R>, Direction) Creates a grouping that resamples the observations from one index to another.
VariablePartition<T> Constructs a grouping that represents a collection of non-overlapping chunks based on the specified condition.
VariableWindow<T> Returns a grouping that represents a moving window based on the specified condition.
Window(IIndex, Int32, Int32, Boolean, Int32) Constructs a grouping that represents a moving window of fixed length.
Window(Int32, Int32, Int32, Boolean, Int32) Constructs a grouping that represents a moving window of fixed length.
Window<T>(Index<T>, Int32, Int32, Boolean, Int32) Constructs a grouping that represents a moving window of fixed length.

See Also