[SciPy-User] deterministic random variable

Robert Kern robert.kern at gmail.com
Fri May 28 15:50:09 EDT 2010


On Fri, May 28, 2010 at 13:11, Nathaniel Smith <njs at pobox.com> wrote:
> On Fri, May 28, 2010 at 10:38 AM,  <josef.pktd at gmail.com> wrote:
>> pdf(x), cdf(x)  with x float would need to know whether x is a support
>> point, but which might not be equal to the actual point because of
>> floating point problems.
>> So, the direct translation of rv_discrete doesn't work, and it looks
>> like at least pdf needs to be accessible either pointwise for queries
>> or using known support points for actual calculations.
>
> Discrete distributions on the real line don't *have* a pdf...

Well, they *have* one; they just can't be implemented in floating point. :-)

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco



More information about the SciPy-User mailing list