Description Usage Arguments Details Value Note Author(s) References See Also Examples
Laplace (double exponential) random generation with mean equal to mean
and standard deviation equal to sd
.
1 |
n |
Number of observations. If |
mean |
Population mean. |
sd |
Population standard deviation. |
The Laplace distribution has density e^{-|x-μ| √{2} / σ} / (σ √{2}), where μ is the mean of the distribution and σ is the standard deviation.
rlaplace
generates random deviates.
The formulas computed within rlaplace
are based on the textbook by Higgins (2004).
Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA
Higgins, J. J. (2004) Introduction to Modern Nonparametric Statistics.
dlaplace
, plaplace
, and qlaplace
.
1 2 3 | # 20 random variates from a Laplace( 50, 10 ) distribution.
rlaplace( 20, 50, 10 )
|
[1] 48.10075 77.01607 46.61319 50.80744 30.85248 55.99545 45.46737 49.55366
[9] 46.73511 47.23211 46.96970 63.43358 35.87802 46.10678 48.72790 61.24212
[17] 33.96689 56.00097 51.43395 44.94936
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.