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 <m...@mikl.dk> 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 DeepDyve