Learn R Programming

diagL1 (version 1.0.0)

rlaplace: 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)

Value

Vector of generated random values.

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).

Examples

Run this code
rlaplace(10, 0, 1)

Run the code above in your browser using DataLab