Skip to content
Snippets Groups Projects
Commit f0251cbf authored by Martin Larralde's avatar Martin Larralde
Browse files

Use substraction in `FrequencyMatrix.to_scoring` method

parent 46065881
No related branches found
No related tags found
No related merge requests found
...@@ -291,7 +291,7 @@ impl<A: Alphabet> FrequencyMatrix<A> { ...@@ -291,7 +291,7 @@ impl<A: Alphabet> FrequencyMatrix<A> {
if f <= 0.0 { if f <= 0.0 {
dst[j] = f32::NEG_INFINITY; dst[j] = f32::NEG_INFINITY;
} else { } else {
dst[j] = (x / f).log2(); dst[j] = x.log2() - f.log2();
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment