Skip to content

Commit

Permalink
fix wrong order of arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
nkuehnel committed May 2, 2024
1 parent de98d44 commit 020efb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static Result compare(Population population1, Population population2, dou
Optional<Double> score2 = Optional.ofNullable(plan2.getScore());

if (score1.isPresent() && score2.isPresent()) {
if (!isWithinDelta(delta, plan2.getScore(), plan1.getScore())) {
if (!isWithinDelta(plan1.getScore(), plan2.getScore(), delta)) {

double maxScore = Double.NEGATIVE_INFINITY;
for (Plan plan : person2.getPlans()) {
Expand Down

0 comments on commit 020efb7

Please sign in to comment.