quantileInt

abstract fun quantileInt(p: Double): Int(source)

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

The quantile function returns the smallest integer k such that cdf(k) >= p. This is the type-safe integer variant — use quantile for Double compatibility with the Distribution interface.

Return

the smallest integer k at which cdf(k) >= p.

Parameters

p

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

Throws