R3
The observation closest to count * p
Functions
Link copied to clipboard
internal fun <T : Comparable<T>> QuantileEstimationMethod.Selecting.cast(): QuantileEstimationMethod<T, Int>
Link copied to clipboard
internal fun <IndexType : Number> QuantileEstimationMethod<*, IndexType>.indexOfQuantile(p: Double, count: Int): IndexType
Link copied to clipboard
Gives the (1-based) index of the p-quantile for a distribution of size count. If the result h is a whole number, the h'th smallest of the count values is the quantile estimate. If not, h is an estimation of the index of the p-quantile. Rounding or interpolation needs to occur to get the actual quantile estimate.
Link copied to clipboard
Link copied to clipboard
internal fun <T : Comparable<T>> QuantileEstimationMethod.Selecting.quantile(p: Double, values: List<T>): T