Skip to content

cauchy

cauchy(options?): NumberSampler

Defined in: src/distribution/continuous/location-scale.ts:29

Cauchy. It has no mean or variance, so both read NaN and extreme outliers are normal.

LocationScaleOptions = {}

NumberSampler

const c = cauchy({ location: 0, scale: 1 });
c.sample(); // -0.4142... and occasionally enormous
c.mean; // NaN