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. 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-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org