dlaplace {ig}R Documentation

Density of the Laplace distribution

Description

Probabilility density function of the 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; victor.leiva@yahoo.com>,
Hugo Hernández <hugo.hernandez.p@gmail.com> and
Antonio Sanhueza <asanhueza@ufro.cl>.

References

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).

Examples

# 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)")

[Package ig version 1.2 Index]