[Zope-CVS] CVS: Products/ZCTextIndex - Index.py:1.1.2.11
Jeremy Hylton
jeremy@zope.com
Thu, 2 May 2002 23:04:03 -0400
Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv10316
Modified Files:
Tag: TextIndexDS9-branch
Index.py
Log Message:
Change "sum" to "cosine" in comment.
=== Products/ZCTextIndex/Index.py 1.1.2.10 => 1.1.2.11 ===
# The equation is:
- # sum = 1/W(d) * 1/W(q) + sum(for t in Q^D: w(d,t) * w(q,t))
+ # cosine = 1/W(d) * 1/W(q) + sum(for t in Q^D: w(d,t) * w(q,t))
# where w(d, t) = 1 + log f(d, t)
# w(q, t) = log(1 + N/f(t))
# W(d) = sqrt(sum(for t in D: w(d, t) ** 2))