quantile

open override fun quantile(p: Double): Double(source)

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

Uses a closed-form expression based on the inverse of the CDF. No iterative root-finding is needed.

Return

the value x at which cdf(x) = p. Returns 0.0 for p = 0 and positive infinity for p = 1.

Parameters

p

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