commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Steitz <phil.ste...@gmail.com>
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.

Phil
> 
> On Mon, Oct 26, 2009 at 4:50 PM, Phil Steitz <phil.steitz@gmail.com> 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: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message