- Corrected unit test (MATH-715).

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1210365 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastien Brisard 2011-12-05 09:01:14 +00:00
parent eba07dbc4e
commit d45a10927e
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ public class PascalDistributionTest extends IntegerDistributionAbstractTest {
Assert.assertEquals(dist.getNumericalMean(), ( 10d * 0.5d ) / 0.5d, tol);
Assert.assertEquals(dist.getNumericalVariance(), ( 10d * 0.5d ) / (0.5d * 0.5d), tol);
dist = new PascalDistribution(25, 0.3);
dist = new PascalDistribution(25, 0.7);
Assert.assertEquals(dist.getNumericalMean(), ( 25d * 0.3d ) / 0.7d, tol);
Assert.assertEquals(dist.getNumericalVariance(), ( 25d * 0.3d ) / (0.7d * 0.7d), tol);
}