add pattern IoC to results html

This commit is contained in:
relikd
2021-02-20 21:44:45 +01:00
parent db9e5d0dda
commit 9e31defce3
31 changed files with 2908 additions and 1462 deletions

View File

@@ -35,7 +35,7 @@ class Probability(object):
return X / ((self.N * (self.N - 1)) / 29)
def IC_norm(self, target_ioc=TARGET_IOC):
return abs(self.IC() - target_ioc)
return 1 - abs(self.IC() - target_ioc)
def similarity(self):
probs = normalized_probability(self.prob)