Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-ha458 committed Oct 8, 2023
1 parent bf61ca4 commit 7e085a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/md.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub(crate) fn mess_ratio(
];

let length = decoded_sequence.chars().count();
let mut mean_mess_ratio: f32 = 0.0;
let mut mean_mess_ratio: f32;
let early_calc_period: usize = match length {
..=510 => 32,
511..=1023 => 64,
Expand All @@ -61,6 +61,7 @@ pub(crate) fn mess_ratio(
}
}

mean_mess_ratio = detectors.iter().map(|x| x.ratio()).sum();
trace!(
"Mess-detector extended-analysis start: \
early_calc_period={}, \
Expand Down Expand Up @@ -94,5 +95,5 @@ pub(crate) fn mess_ratio(
}
}
trace!("===");
detectors.iter().map(|x| x.ratio()).sum()
mean_mess_ratio
}

0 comments on commit 7e085a5

Please sign in to comment.