Learn R Programming

diagL1 (version 1.0.0)

dlaplace: Probability density function (PDF) of the Laplace distribution

Description

Probability density function (PDF) of the Laplace distribution

Usage

dlaplace(x, location = 0, scale = 1)

Value

Vector of calculated probability densities.

Arguments

x

Values for which to calculate the probability density.

location

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

scale

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

Examples

Run this code
dlaplace(0, 0, 1)

Run the code above in your browser using DataLab