def MakeExponentialPmf(lam, high, n=<NUM_LIT:200>):
pmf = Pmf()<EOL>for x in numpy.linspace(<NUM_LIT:0>, high, n):<EOL><INDENT>p = EvalExponentialPdf(x, lam)<EOL>pmf.Set(x, p)<EOL><DEDENT>pmf.Normalize()<EOL>return pmf<EOL>
Makes a PMF discrete approx to an exponential distribution.

    lam: parameter lambda in events per unit time
    high: upper bound
    n: number of values in the Pmf

    returns: normalized Pmf