commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Steitz <>
Subject Re: [math] Generate random data using the Inverse CDF Method?
Date Tue, 27 Oct 2009 00:08:04 GMT
Ted Dunning wrote:
> Inverse CDF methods work for discrete distributions as well as continuous
> ones.

Thanks.  That's what I was missing. I would still rather see the
implementations in the random package and for common distributions,
e.g. Poisson, pick a method that is well-suited for the distribution.

> On Mon, Oct 26, 2009 at 4:50 PM, Phil Steitz <> wrote:
>>> If not, I would create a public interface
>>> DistributionWithInverseCumulativeProbability (who has a better name?)
>>> with the method inverseCumulativeProbability (right now it's on
>>> ContinuousDistribution and some other subclasses and don't seem to be
>>> gathered in an interface) and all the distributions with the
>>> inverseCumulativeProbability-method should implement this interface.
>> I am not following you here. What exactly is the difference between
>> DistributionWithInverseCumulativeProbability and
>> ContinuousDistribution?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message