Skip to content

Commit

Permalink
Merge bc61789 into 43b77ff
Browse files Browse the repository at this point in the history
  • Loading branch information
tongxin97 committed Oct 28, 2020
2 parents 43b77ff + bc61789 commit 14c2b29
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -248,7 +248,7 @@ public void testIssue1065() {
public void testCreateFromDoubles() {
final double[] data = new double[] {0, 1, 1, 2, 2, 2};
EnumeratedRealDistribution distribution = new EnumeratedRealDistribution(data);
assertEquals(0.5, distribution.probability(2), 0);
assertEquals(0.5, distribution.probability(2), 1e-15);
assertEquals(0.5, distribution.cumulativeProbability(1), 0);
}
}

0 comments on commit 14c2b29

Please sign in to comment.