dLaplace {ig} | R Documentation |
Compute the probabilility density function of 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>, Hugo Hernández <hugo.hernandez@msn.com>, and Antonio Sanhueza <asanhue@ufro.cl>.
Johnson, N., Kotz, S. and Balakrishnan, N. (1994). Continuous univariate distributions, vol 1.
x<-seq(-3,3,by=0.01) y<-dLaplace(x) plot(x,y,type="l",xlab="x",ylab="f(x)")