flopscope.

flopscope.stats.cauchy

flopscope.stats.cauchy

Cauchy (Lorentz) continuous random variable.

This object mirrors scipy.stats.cauchy.

Notes

loc is the location parameter and scale is the half-width at half-maximum. pdf deducts 6 * numel(input) FLOPs (pure-arithmetic composite: z=(x-loc)/scale; 1/(pi*scale*(1+z^2)) = sub+div+mul+add+mul+div = 6 FLOPs/elem, weight 1.0; calibrated alpha 6.0). cdf deducts 20 * numel(input) FLOPs (composite: z(2) + arctan(16) + /pi(1) + 0.5+(1), FMA=2, weight 1.0). ppf deducts 28 * numel(input) FLOPs (composite: q-0.5(1) + pi*(1) + tan(16) + loc+scale*(2) + 3 where(8), FMA=2, weight 1.0).