Description Usage Arguments Value Examples
Simulates a sample of Laplace-distributed data. Note that there are other rlaplace() functions (such as in the rmutil package), but their parameters may differ from this one, which uses the expectation and standard deviation (analogous to rnorm()).
1 |
n |
The number of independent observations to draw (i.e. sample size). |
mu |
The expectation of the Laplace distribution. |
sigma |
The standard deviation of the Laplace distribution. |
A vector of Laplace-distributed random numbers of length n.
1 | rlaplace(10, 0, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.