laplace
laplace(
location?,scale?):number
Defined in: src/global/distributions.ts:137
One Laplace draw: two exponential tails back to back.
Parameters
Section titled “Parameters”location?
Section titled “location?”number = 0
scale?
Section titled “scale?”number = 1
Returns
Section titled “Returns”number
Example
Section titled “Example”laplace(0, 1); // 0.3819...