dlaplace: Internal function: Laplace density
Description
Wrapper around dsubbotin
with fixed q = 1
. Uses
the parametrization on pp. 131 of magnus2016wals;textualWALS.
Usage
dlaplace(x, b, log = FALSE)
Value
Gives the (log-)density.
Arguments
- x
vector of quantiles.
- b
\(c\) in magnus2016wals;textualWALS.
Parameter of reflected generalized gamma distribution. See below for details.
- log
logical; if TRUE, probabilities p are given as log(p).
Details
The density function is
$$\pi(x) = \frac{c}{2} \exp(-c |x|).$$