commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <>
Subject Re: [math] Generate random data using the Inverse CDF Method?
Date Mon, 26 Oct 2009 23:04:43 GMT
That sounds nice.  It also means that more distributions are likely to
benefit "by accident" even if they don't know to advertise what they can do.

It is also plausible to use reflection at class construction time to
determine whether the method is available.  That would let
AbstractDistribution use the inverse distribution to implement a generator
if possible.

On Mon, Oct 26, 2009 at 3:58 PM, Mikkel Meyer Andersen <> wrote:

> So the best might be
> to put an inverse cd method at AbstractDistribution, and throw an
> exception, because AbstractIntegerDistribution and
> AbstractContinuousDistribution implements it. How does that sound?

Ted Dunning, CTO

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message