docs: def Mean(self):
          """Computes the mean of a PMF.
  
          Returns:
              float mean
          """
          mu = 0.0
          for x, p in self.d.iteritems():
              mu += p * x
          return mu