Grouping.ByQuantile Method

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

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.

ByQuantile<T>(IList<T>, IList<Double>)

Constructs a grouping based on the quantile ranks.
C#
public static Grouping<Interval<double>> ByQuantile<T>(
	IList<T> values,
	IList<double> quantiles
)

Parameters

values  IList<T>
A list that contains the values to group on.
quantiles  IList<Double>
A vector of quantiles to include in the grouping.

Type Parameters

T
The element type of the list.

Return Value

Grouping<Interval<Double>>
A grouping that divides values into groups based on the quantiles in quantiles.

ByQuantile<T>(IList<T>, Int32)

Constructs a grouping based on the quantile ranks.
C#
public static Grouping<long> ByQuantile<T>(
	IList<T> values,
	int count
)

Parameters

values  IList<T>
A list that contains the values to group on.
count  Int32
The number of groups to create.

Type Parameters

T
The element type of the list.

Return Value

Grouping<Int64>
A grouping that divides values into count groups of equal size

See Also