pep.pep.DistributionFunction¶
-
class
pep.pep.DistributionFunction[source]¶ Distribution function class (list of distribution rules)
Variables: - proportionTotal (int) – the sum of all proportions
- expression (str) – string representation of the distribution function
Methods
__init__()Initialize the underling list used to store rules append((object) -> None – append object to end)clear(() -> None – remove all items from L)copy(() -> list – a shallow copy of L)count(…)distribute(newValue)Update the variables referenced in the distribution rules according to the specified proportions extend(…)index((value, [start, …)Raises ValueError if the value is not present. insertL.insert(index, object) – insert object before index pop(…)Raises IndexError if list is empty or index is out of range. remove(…)Raises ValueError if the value is not present. reverseL.reverse() – reverse IN PLACE sort((key=None[, reverse])