flopscope.stats.uniform.cdf
flopscope.stats.uniform.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
Lower bound of the support. Defaults to
0.- scale:float, optional
Width of the support interval. Defaults to
1.
Returns
- :FlopscopeArray
Cumulative probability evaluated elementwise at
x.
Notes
Equivalent to scipy.stats.uniform.cdf(x, loc, scale).
FLOP cost: 1 * numel(x).
Examples
>>> import flopscope.numpy as fnp
>>> import flopscope as flops
>>> x = flops.array([0.0, 0.5, 1.0])
>>> flops.round(flops.stats.uniform.cdf(x), 3)
array([0. , 0.5, 1. ])