Constructs a grouping based on the quantile ranks.
Namespace: Extreme.DataAnalysisAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.17114.0)
public static Grouping<Interval<double>> ByQuantile<T>(
IList<T> values,
IList<double> quantiles
)
Public Shared Function ByQuantile(Of T) (
values As IList(Of T),
quantiles As IList(Of Double)
) As Grouping(Of Interval(Of Double))
public:
generic<typename T>
static Grouping<Interval<double>>^ ByQuantile(
IList<T>^ values,
IList<double>^ quantiles
)
static member ByQuantile :
values : IList<'T> *
quantiles : IList<float> -> Grouping<Interval<float>>
Parameters
- values
- Type: System.Collections.GenericIListT
A list that contains the values to group on. - quantiles
- Type: System.Collections.GenericIListDouble
A vector of quantiles to include in the grouping.
Type Parameters
- T
- The element type of the list.
Return Value
Type:
GroupingIntervalDoubleA grouping that divides
values into
groups based on the quantiles in
quantiles.
Numerical Libraries
Supported in: 6.0
Reference