Grouping Class

Represents a collection of keys mapped to groups of indices.

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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<TInput>(IList<TInput>, IList<Double>) Constructs a grouping based on the quantile ranks.
ByQuantile<TInput>(IList<TInput>, Int32) Constructs a grouping based on the quantile ranks.
ByValue<TInput>(IList<TInput>) Constructs a grouping based on the values in the specified list.
ByValue<TInput>(IList<TInput>, IntervalIndex<TInput>) Constructs a grouping based on binned values.
ByValue<TInput>(IList<TInput>, IEqualityComparer<TInput>) Constructs a grouping based on the values in the specified list.
ByValue<TInput>(IList<TInput>, TInput, TInput, Int32) Constructs a grouping based on binned values.
ExpandingWindow(IIndex) Constructs a grouping that represents an expanding window.
ExpandingWindow<TInput>(Index<TInput>) Constructs a grouping that represents an expanding window.
FromLevels Constructs a grouping from the specified collection of level indexes.
Group<TInput>(IEnumerable<TInput>) Returns a grouping by the unique elements in a sequence.
Group<TInput>(IList<TInput>) Returns a grouping by the unique elements in a list.
Group<TInput>(IEnumerable<TInput>, IEqualityComparer<TInput>) Returns a grouping by the unique elements in a sequence using the specified comparer to determine equality.
Group<TInput>(IList<TInput>, IEqualityComparer<TInput>) 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<TInput>(IList<TInput>, 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<TInput> Constructs a grouping that represents a collection of non-overlapping chunks based on the specified condition.
VariableWindow<TInput> 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<TInput>(Index<TInput>, Int32, Int32, Boolean, Int32) Constructs a grouping that represents a moving window of fixed length.

See Also