nimble.calculate.proportionZero¶
- nimble.calculate.proportionZero(values)¶
The proportion of values in the vector that are equal to zero.
- Parameters:
values (nimble Base object) – Must be one-dimensional.
Examples
>>> lst = [0, 1, 2, 3] >>> vector = nimble.data(lst) >>> proportionZero(vector) 0.25