dlaplace {ig} | R Documentation |
Probabilility density function of the Laplace distribution.
dlaplace(x)
x |
Vector of observations. |
The Laplace distribution has pdf given by
f_T(t)=(1/2) exp(-|t|),
with -infty < t < + infty.
dLaplace()
gives the pdf of an Laplace distribution.
Víctor Leiva <victor.leiva@uv.cl; victor.leiva@yahoo.com>,
Hugo Hernández <hugo.hernandez.p@gmail.com> and
Antonio Sanhueza <asanhueza@ufro.cl>.
Mineo, A. (2003). A new package for the general error distribution. R News, 3(2), 13-16.
Sanhueza, A., Leiva, V., Balakrishnan, N. (2008). A new class of inverse Gaussian type distributions. Metrika (in press).
# Produces a graphical plot for the Laplace distribution x <- seq(-3, 3, by = 0.01) y <- dlaplace(x) plot(x, y, type = "l", xlab = "x", ylab = "f(x)")