Refactor Algorithm

This commit is contained in:
2022-12-21 11:33:55 +01:00
parent dd1e67ec78
commit f449f438ef
11 changed files with 101 additions and 543 deletions

View File

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