cdf

open override fun cdf(x: Double): Double(source)

Returns the cumulative distribution function value at x for this Laplace distribution.

The CDF has a piecewise form: for values at or below mu it equals 0.5 * exp(z), and for values above mu it equals 1 - 0.5 * exp(-z), where z = (x - mu) / scale. This gives the probability that a random value from this distribution is less than or equal to x.

Return

the probability that a value is less than or equal to x, in the range [0, 1].

Parameters

x

the point at which to evaluate the cumulative probability.