commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Steitz <>
Subject Re: [math] Distributions over sample spaces other than R
Date Sat, 29 Oct 2011 16:35:57 GMT
On 10/29/11 9:07 AM, cwinter wrote:
> cwinter wrote:
>> [...] Regarding IntergerDistribution I don't have a preference on leaving
>> it in the current hierarchy or making it to a new root.
>> Christian
> Just now, while pulling inverseCumulativeProbability form
> ContinuousDistribution up to Distribution, I got a conflict with
> IntegerDistribution: IntegerDistribution.inverseCumulativeProbability wants
> to return int which doesn't fit to the return type double of
> Distribution.inverseCumulativeProbability.
> Either the return type has to be changed to double for all integer
> distributions - which is quite annoying - or we need to pull
> IntegerDistribution out of the hierachy - which is my favorite now. For the
> case that there is a requirement for embedding the domain into the reals, we
> could implement the procedure IntegerDistribution.toDiscreteDistribution()
> returning the appropriate DiscreteDistribution.

I would say pull DiscreteDistribution out.  That is where the
difference really lies.  I have thought about suggesting that we
eliminate it altogether; but I still think there may be value in
supporting discrete distributions over sample spaces that are not
embedded in the integers.

> Best Regards,
> Christian
> --
> View this message in context:
> Sent from the Commons - Dev mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message