Laplace | R Documentation |
Density and random generation for the (symmetric) Laplace distribution.
dl(x, mu = 0, sigma = 1, log = FALSE)
rl(n, mu = 0, sigma = 1)
x |
vector of quantiles. |
n |
number of observations. |
mu |
location parameter. |
sigma |
positive scale parameter. |
log |
logical; if |
The Laplace distribution has density
f(x) =
\frac{1}{\sqrt{2}\sigma}e^{-\frac{sqrt(2)}{\sigma} |x - \mu|}
where \mu
is the location parameter and \sigma
is the scale parameter.
dl
gives the density and rl
generates random deviates.
Marco Geraci
Kotz, S., Kozubowski, T., and Podgorski, K. (2001). The Laplace distribution and generalizations. Boston, MA: Birkhauser.
MultivariateLaplace
, GenLaplace
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.