Skip to content

Commit

Permalink
fixed files form Math #2
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent 6e20c01 commit 13de4e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ private double innerCumulativeProbability(int x0, int x1, int dx) {
* size {@code n}, the mean is {@code n * m / N}.
*/
public double getNumericalMean() {
return (double) (getSampleSize() * getNumberOfSuccesses()) / (double) getPopulationSize();
return getSampleSize() * (getNumberOfSuccesses() / (double) getPopulationSize());
}

/**
Expand Down

0 comments on commit 13de4e3

Please sign in to comment.