laplace
laplace(
options?):NumberSampler
Defined in: src/distribution/continuous/location-scale.ts:49
Laplace: two exponential tails back to back.
Parameters
Section titled “Parameters”options?
Section titled “options?”LocationScaleOptions = {}
Returns
Section titled “Returns”Example
Section titled “Example”laplace({ location: 0, scale: 1 }).sample(); // 0.3819...