quantile — The quantile function

Usage

quantile(dist: Distribution<Double>, p: Double) → Double

Arguments

dist:

The distribution parameter

p:

The probability parameter

Description

Find the point x where the Pr(X < x) = p under the distribution.

Examples

quantile(Gamma(1, 2), 0.5)   // compute the median of Gamma(1,2)