quantile

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

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

Uses Newton's method seeded with the corresponding standard normal quantile. The distribution is symmetric, so quantile(0.5) returns exactly 0.

Return

the value x such that cdf(x) = p.

Parameters

p

the cumulative probability, must be in 0, 1.