Re: [Math] AbstractIntegerDistribution.inverseCumulativeDistribution Unexpected Result

2014-10-10 Thread Ole Ersoy
The variance of the DiceDistribution is wrong. Correct is the following: 2.91 or (70/24). You can verify the correct results also with a UniformIntegerDistribution(1, 6). Obviously the wrong variance was not noticed as the tests in this class do not compute the inverseCumulativeProbability. I

Re: [Math] AbstractIntegerDistribution.inverseCumulativeDistribution Unexpected Result

2014-10-10 Thread Ole Ersoy
The variance of the DiceDistribution is wrong. Correct is the following: 2.91 or (70/24). You can verify the correct results also with a UniformIntegerDistribution(1, 6). Obviously the wrong variance was not noticed as the tests in this class do not compute the inverseCumulativeProbability.

Re: [Math] AbstractIntegerDistribution.inverseCumulativeDistribution Unexpected Result

2014-10-10 Thread Thomas Neidhart
On 10/10/2014 10:24 PM, Ole Ersoy wrote: > Hi, > > I ran the following assertions on the dice distribution in the > AbstractIntegerDistributionTest: > > Assert.assertEquals(3, > diceDistribution.inverseCumulativeProbability(0.7d/6d)); //Expecting 1 > Assert.assertEquals(3, > dice

[Math] AbstractIntegerDistribution.inverseCumulativeDistribution Unexpected Result

2014-10-10 Thread Ole Ersoy
Hi, I ran the following assertions on the dice distribution in the AbstractIntegerDistributionTest: Assert.assertEquals(3, diceDistribution.inverseCumulativeProbability(0.7d/6d)); //Expecting 1 Assert.assertEquals(3, diceDistribution.inverseCumulativeProbability(0.8d/6d)); /