瀏覽代碼

Simplify function.

tags/v0.2
Ben Kurtovic 10 年之前
父節點
當前提交
932b93572a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      earwigbot/wiki/copyvios/workers.py

+ 1
- 1
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



Loading…
取消
儲存