pdf

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

Returns the probability density at x for this Laplace distribution.

The density is highest at mu (where it equals 1 / (2 * scale)) and decays exponentially on both sides. Unlike the normal distribution, the decay is purely exponential rather than Gaussian, which produces the characteristic sharp peak.

Return

the probability density at x. Always non-negative.

Parameters

x

the point at which to evaluate the density.