From 932b93572a21d09a24456802f05630a714c08f0c Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Fri, 26 Sep 2014 20:09:05 -0500 Subject: [PATCH] Simplify function. --- earwigbot/wiki/copyvios/workers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earwigbot/wiki/copyvios/workers.py b/earwigbot/wiki/copyvios/workers.py index e4ea165..99d2c86 100644 --- a/earwigbot/wiki/copyvios/workers.py +++ b/earwigbot/wiki/copyvios/workers.py @@ -268,7 +268,7 @@ class CopyvioWorkspace(object): # http://benkurtovic.com/static/article-delta_confidence_function.pdf ratio = delta / article if ratio <= 0.52763: - return log(1 / (1 - ratio)) + return -log(1 - ratio) else: return (-0.8939 * (ratio ** 2)) + (1.8948 * ratio) - 0.0009