quantile

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

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

Because the CDF is linear, the quantile is a simple linear interpolation between min and max.

Return

the value x at which cdf(x) = p.

Parameters

p

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