Learn R Programming

jmuOutlier (version 2.2)

dlaplace: Laplace (Double Exponential) Density Function

Description

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

Usage

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

Arguments

x

Vector of quantiles.

mean

Population mean.

sd

Population standard deviation.

Value

dlaplace gives the density.

Details

The Laplace distribution has density \(e^{-|x-\mu| \sqrt{2} / \sigma} / (\sigma \sqrt{2}),\) where \(\mu\) is the mean of the distribution and \(\sigma\) is the standard deviation.

References

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

See Also

plaplace, qlaplace, and rlaplace.

Examples

Run this code
# NOT RUN {
 dlaplace( seq( 20, 80, length.out=11 ), 50, 10 ) 


# }

Run the code above in your browser using DataLab