code: def MakePmf(self, xs, name=''):
          
          pmf = Pmf(name=name)
          for x in xs:
              pmf.Set(x, self.Density(x))
          pmf.Normalize()
          return pmf
docs: Makes a discrete version of this Pdf, evaluated at xs.
  
          xs: equally-spaced sequence of values
  
          Returns: new Pmf