rlaplace function

Random Laplace.

Random Laplace.

Random generation for the Laplace (double exponential) data with location 0 and scale 1.

rlaplace(n)

Arguments

  • n: scalar. number of random draws.

Details

A Laplace or double expoential distribution has heavier tails than a normal distribution and so a sample will tend to have additional outliers.

Returns

A vector of length n is returned containing the random data.

References

Hogg, Robert V.; McKean, Joseph; and Craig, Allen T., "Introduction to Mathematical Statistics (6th Edition)" (2005).

Author(s)

John Kloke, Joseph McKean

Examples

x <- rlaplace(100) qqnorm(x)
  • Maintainer: John Kloke
  • License: GPL (>= 2)
  • Last published: 2024-05-26