Skip to content

Commit

Permalink
Fix int division bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mikessh committed Nov 21, 2016
1 parent 95836a9 commit 282171b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ public double getGlobalMinorRate(int from, int to) {

public double getGlobalMinorRate(int from, int to, boolean symmetric) {
return symmetric ?
(getM1(from, to) + getM1(~from & 3, ~to & 3)) / (getM(from, to) + getM(~from & 3, ~to & 3)) :
getM1(from, to) / getM(from, to);
(getM1(from, to) + getM1(~from & 3, ~to & 3)) / (double) (getM(from, to) + getM(~from & 3, ~to & 3)) :
getM1(from, to) / (double) getM(from, to);
}

private double getPValueSum(int from, int to) {
Expand Down

0 comments on commit 282171b

Please sign in to comment.