dlaplace: Laplace (Double Exponential) Density Function

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/dlaplace.R

Description

Laplace (double exponential) density with mean equal to mean and standard deviation equal to sd.

Usage

1
dlaplace(x, mean = 0, sd = 1)

Arguments

x

Vector of quantiles.

mean

Population mean.

sd

Population standard deviation.

Details

The Laplace distribution has density e^{-|x-μ| √{2} / σ} / (σ √{2}), where μ is the mean of the distribution and σ is the standard deviation.

Value

dlaplace gives the density.

Note

The formulas computed within dlaplace are based on the textbook by Higgins (2004).

Author(s)

Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA

References

Higgins, J. J. (2004) Introduction to Modern Nonparametric Statistics.

See Also

plaplace, qlaplace, and rlaplace.

Examples

1
 dlaplace( seq( 20, 80, length.out=11 ), 50, 10 ) 

jmuOutlier documentation built on Aug. 6, 2019, 1:03 a.m.