- if ((distRow == aboveCutoff) && (distCol == aboveCutoff)) { //you are merging with a value above cutoff
- newDist = aboveCutoff; //eliminate value
- }else if ((distRow == aboveCutoff) && (distCol != aboveCutoff)) { //you are merging with a value above cutoff
- newDist = aboveCutoff; //eliminate value
- if (cutOFF > distCol) { cutOFF = distCol; }
- }else if ((distRow != aboveCutoff) && (distCol == aboveCutoff)) { //you are merging with a value above cutoff
- newDist = aboveCutoff; //eliminate value
- if (cutOFF > distRow) { cutOFF = distRow; }
- }else {
- int rowBin = rabund->get(r);
- int colBin = rabund->get(c);
- newDist = (colBin * distCol + rowBin * distRow) / (rowBin + colBin);
- }
+ int rowBin = rabund->get(r);
+ int colBin = rabund->get(c);
+ newDist = (colBin * distCol + rowBin * distRow) / (rowBin + colBin);