dnLaplace
- Laplace Distribution
Laplace distribution with mean equal to ‘mean’ and scale equal to ‘scale’.
dnLaplace(
Real mean,
RealPos scale)
mean : |
Real (pass by const reference) |
| The mean parameter. |
| Default : 0 |
scale : |
RealPos (pass by const reference) |
| The scale parameter. |
| Default : 1 |
The Laplace distribution has density:
f(x) = 1/(2 b) e^-(abs(x-mu)/b)
where mu is the mean of the distribution and b the scale.