def Mean(self):
old_p = <NUM_LIT:0><EOL>total = <NUM_LIT:0.0><EOL>for x, new_p in zip(self.xs, self.ps):<EOL><INDENT>p = new_p - old_p<EOL>total += p * x<EOL>old_p = new_p<EOL><DEDENT>return total<EOL>
Computes the mean of a CDF.

        Returns:
            float mean