The Laplace Distribution
Density, distribution function, quantile function and random generation for the (symmetric) Laplace distribution.
dl(x, mu = 0, sigma = 1, log = FALSE) pl(x, mu = 0, sigma = 1, lower.tail = TRUE, log.p = FALSE) ql(p, mu = 0, sigma = 1, lower.tail = TRUE, log.p = FALSE) rl(n, mu = 0, sigma = 1)
x
: vector of quantiles.p
: vector of probabilities.n
: number of observations.mu
: location parameter.sigma
: positive scale parameter.log,log.p
: logical; if TRUE
, probabilities are log--transformed.lower.tail
: logical; if TRUE
(default), probabilities are otherwise, . Similarly for quantiles.The Laplace distribution has density
where is the location parameter and is the scale parameter. Note that based on this parameterization, the distribution has variance .
dl
gives the density and rl
generates random deviates.
Kotz, S., Kozubowski, T., and Podgorski, K. (2001). The Laplace distribution and generalizations. Boston, MA: Birkhauser.
Marco Geraci
MultivariateLaplace
, GenLaplace
Useful links