quantileInt

open override fun quantileInt(p: Double): Int(source)

Returns the quantile (inverse CDF) for the given probability p as an Int.

Uses binary search on the precomputed CDF table for O(log n) lookup.

Return

the smallest integer k in [1, n] at which cdf(k) >= p.

Parameters

p

the cumulative probability, must be in [0, 1].