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] 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.

Phil
>
> Best Regards,
> Christian
>
>
> --
> View this message in context: http://apache-commons.680414.n4.nabble.com/math-Distributions-over-sample-spaces-other-than-R-tp3931349p3951113.html
> Sent from the Commons - Dev mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message