| 290 | | if(Math.abs(total - true_matches) > Math.abs(prev_total - true_matches)){ |
|---|
| 291 | | // use previous score as threshold |
|---|
| 292 | | mc.setScoreThreshold(prev_mr.getScore()); |
|---|
| 293 | | } else { |
|---|
| 294 | | mc.setScoreThreshold(total_mr.getScore()); |
|---|
| 295 | | } |
|---|
| | 290 | if (prev_mr != null && total_mr != null){ |
|---|
| | 291 | if(Math.abs(total - true_matches) > Math.abs(prev_total - true_matches)){ |
|---|
| | 292 | // use previous score as threshold |
|---|
| | 293 | mc.setScoreThreshold(prev_mr.getScore()); |
|---|
| | 294 | } else { |
|---|
| | 295 | mc.setScoreThreshold(total_mr.getScore()); |
|---|
| | 296 | } |
|---|
| | 297 | } |
|---|