flopscope.stats.norm.cdf
flopscope.stats.norm.cdf(x, loc=0, scale=1)[flopscope source]
Evaluate the cumulative distribution function.
Parameters
- x:array_like
Points at which to evaluate the cumulative probability.
- loc:float, optional
Mean of the distribution. Defaults to
0.- scale:float, optional
Standard deviation of the distribution. Defaults to
1.
Returns
- :FlopscopeArray
Cumulative probability evaluated elementwise at
x.
Notes
Equivalent to scipy.stats.norm.cdf(x, loc, scale).
FLOP cost: 1 * numel(x).
Examples
>>> import flopscope.numpy as fnp
>>> import flopscope as flops
>>> x = flops.array([-1.0, 0.0, 1.0])
>>> flops.round(flops.stats.norm.cdf(x), 3)
array([0.159, 0.5 , 0.841])