Skip to content

Commit

Permalink
important bugfix: fix use of frequency information in score() functio…
Browse files Browse the repository at this point in the history
…n (was inactive)
  • Loading branch information
proycon committed Feb 14, 2022
1 parent d90d870 commit 44c3cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ impl VariantResult {
if freq_weight == 0.0 {
self.dist_score
} else {
(self.dist_score + (freq_weight as f64 * self.dist_score)) / (1.0+freq_weight as f64)
(self.dist_score + (freq_weight as f64 * self.freq_score)) / (1.0+freq_weight as f64)
}
}

Expand Down

0 comments on commit 44c3cc2

Please sign in to comment.