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)); /

[math] Include quartiles estimated using PSquarePercentile in SummaryStatistics

2014-10-10 Thread Phil Steitz
Now that we have a "storeless" percentile estimator, we can add quartile computation to SummaryStatistics. Any objections to my adding this? I could optionally add a boolean constructor argument to avoid the overhead of maintaining these stats. Or more generally, add a bitfield encoding the exac

[ANN] Apache Commons Compress 1.9 Released

2014-10-10 Thread Stefan Bodewig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The Apache Commons Team is pleased to announce the release of Apache Commons Compress 1.9. Version 1.9 adds support for raw DEFLATE streams without GZIP framing. In addition it fixes bugs in the 7z and tar packages and may improve checking for the pre