Refactor testing

This commit is contained in:
2022-12-20 01:24:49 +01:00
parent 50543e4921
commit dd1e67ec78
12 changed files with 516 additions and 70 deletions

View File

@@ -39,7 +39,7 @@ namespace mdlp {
for (auto count : counts) {
if (count > 0) {
p = (precision_t)count / nElements;
ventropy -= p * log2(p);
ventropy -= p * log(p);
}
}
entropyCache[make_tuple(start, end)] = ventropy;