Constructs a grouping based on the quantile ranks.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
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.
Reference