Grouping.By Quantile Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
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. |
ByQuantile<TInput>(IList<TInput>, IList<Double>)
Constructs a grouping based on the quantile ranks.
public static Grouping<Interval<double>> ByQuantile<TInput>(
IList<TInput> values,
IList<double> quantiles
)
Parameters
- values IList<TInput>
- A list that contains the values to group on.
- quantiles IList<Double>
- A vector of quantiles to include in the grouping.
Type Parameters
- TInput
- 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<TInput>(IList<TInput>, Int32)
Constructs a grouping based on the quantile ranks.
public static Grouping<long> ByQuantile<TInput>(
IList<TInput> values,
int count
)
Parameters
- values IList<TInput>
- A list that contains the values to group on.
- count Int32
- The number of groups to create.
Type Parameters
- TInput
- The element type of the list.
Return Value
Grouping<Int64>A grouping that divides values into count groups of equal size