Skip to content

Commit

Permalink
Respect RMS tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski committed Oct 9, 2024
1 parent 1376fc4 commit 77f1c73
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ internal class Recorder(
}

is ComparisonMethod.RootMeanSquareErrorValue -> { existing, incoming ->
existing.getRootMeetSquare(incoming)
val rms = existing.getRootMeetSquare(incoming)
if (rms > comparisonMethod.tolerance) {
rms
} else {
0
}
}
}

Expand Down

0 comments on commit 77f1c73

Please sign in to comment.