Module openquake.hazardlib.pmf implements PMF.
Probability mass function is a function that gives the probability that a discrete random variable is exactly equal to some value.
Parameters: 


Raises ValueError:  
If probabilities do not sum up to 1 or there is zero or negative probability. 
NB: in the engine the sum is checked to be exactly one by using Decimal numbers.