Density of the Laplace distribution. Equivalent to extraDistr::dlaplace(x, mu = 0, sigma = 1, log = FALSE) in R.
extraDistr::dlaplace(x, mu = 0, sigma = 1, log = FALSE)
Value(s) at which to evaluate: a number, number[] or Float64Array. The result has the same shape.
number[]
Float64Array
mu and sigma (see LaplaceParams) and log (see DensityOptions).
mu
sigma
log
dlaplace(0); // 0.5dlaplace(1, { mu: 1, sigma: 2 }); // 0.25 Copy
dlaplace(0); // 0.5dlaplace(1, { mu: 1, sigma: 2 }); // 0.25
Density of the Laplace distribution. Equivalent to
extraDistr::dlaplace(x, mu = 0, sigma = 1, log = FALSE)in R.