rlaplace {diagL1}R Documentation

Function to generate random values from the Laplace distribution

Description

Function to generate random values from the Laplace distribution

Usage

rlaplace(n, location = 0, scale = 1)

Arguments

n

Number of values to generate.

location

Location parameter of the Laplace distribution (default = 0).

scale

Scale parameter of the Laplace distribution (default = 1).

Value

Vector of generated random values.

Examples

rlaplace(10, 0, 1)

[Package diagL1 version 1.0.0 Index]