Browse Source

Simplify function.

tags/v0.2
Ben Kurtovic 10 years ago
parent
commit
932b93572a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      earwigbot/wiki/copyvios/workers.py

+ 1
- 1
earwigbot/wiki/copyvios/workers.py View File

@@ -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



Loading…
Cancel
Save