dLaplace {ig}R Documentation

Probability density function (pdf) of the Laplace distribution

Description

Compute the probabilility density function of Laplace distribution.

Usage

dLaplace(x)

Arguments

x Vector of observations.

Details

The Laplace distribution has pdf given by

f_T(t)=(1/2) exp(-|t|),

with -infty < t < + infty

Value

dLaplace() gives the pdf of an Laplace distribution.

Author(s)

Víctor Leiva <victor.leiva@uv.cl>, Hugo Hernández <hugo.hernandez@msn.com>, and Antonio Sanhueza <asanhue@ufro.cl>.

References

Johnson, N., Kotz, S. and Balakrishnan, N. (1994). Continuous univariate distributions, vol 1.

Examples

x<-seq(-3,3,by=0.01)
y<-dLaplace(x)
plot(x,y,type="l",xlab="x",ylab="f(x)")

[Package ig version 1.0 Index]