Skip to content

Commit

Permalink
fix: recall calculation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nishaq503 committed Nov 11, 2023
1 parent 44754ad commit 462594b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cakes-results/src/genomic/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ pub fn compute_recall<U: Number>(

let mut num_common = 0_usize;
while let (Some(&hit), Some(&linear_hit)) = (hits.peek(), linear_hits.peek()) {
if (hit - linear_hit).abs() < U::epsilon() {
if (hit - linear_hit).abs() <= U::epsilon() {
num_common += 1;
hits.next();
linear_hits.next();
Expand Down

0 comments on commit 462594b

Please sign in to comment.