Laplace {rmutil}R Documentation

The Laplace Distribution

Description

These functions provide information about the Laplace distribution with location parameter equal to m and dispersion equal to s. dlaplace gives the density, plaplace gives the distribution function, hlaplace gives the hazard function.

The Laplace distribution has density

f(y) = exp(-abs(y-m)/s)/(2*s)

where m is the location parameter of the distribution and s is the dispersion.

Usage

dlaplace(y, m, s)
plaplace(q, m, s)
hlaplace(y, m, s)

Arguments

y vector of responses.
q vector of quantiles.
m vector of location parameters.
s vector of dispersion parameters.

Author(s)

J.K. Lindsey

See Also

dexp for the exponential distribution and dcauchy for the Cauchy distribution.

Examples

dlaplace(5, 2, 1)
plaplace(5, 2, 1)


[Package Contents]