flopscope.stats.truncnorm
flopscope.stats.truncnorm
Truncated normal continuous random variable.
This object mirrors scipy.stats.truncnorm.
Notes
a and b are standardized lower and upper bounds. The truncated
support is [a * scale + loc, b * scale + loc], and both bounds appear
before loc and scale to match SciPy's signature. pdf deducts
28 * numel(broadcast(input, a, b, loc, scale)) FLOPs (composite:
z(2)+std_norm_pdf(20)+div(1)+bounds(5), FMA=2, weight 1.0; calibrated
alpha 28.0). cdf deducts 51 * numel(broadcast(input, a, b, loc, scale))
FLOPs (composite: z(2)+std_norm_cdf(46)+result(3)+2 where(4), FMA=2,
weight 1.0; calibrated alpha 50.6). ppf deducts
81 * numel(broadcast(input, a, b, loc, scale)) FLOPs (composite:
erf + ndtri rational approx + arithmetic, weight 1.0; audit-2 verified).