R3

The observation closest to count * p

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun oneBasedIndexOfQuantile(p: Double, count: Int): Int

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
open override fun quantile(p: Double, values: List<Comparable<Any>>): Comparable<Any>
Link copied to clipboard