- 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:
parent
eba07dbc4e
commit
d45a10927e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue