PL2,PL2+: Improve upper bound on normalised wdf
commit3a81fc9226b910fdd2a032a1f1d842366686e189
authorOlly Betts <olly@survex.com>
Thu, 18 Aug 2016 22:41:11 +0000 (19 10:41 +1200)
committerOlly Betts <olly@survex.com>
Fri, 16 Sep 2016 05:45:34 +0000 (16 17:45 +1200)
tree375ca34b78475983162375d2b74ac3d654142a2c
parent8ffe3ca72cbf9825ed66dc7ea08cebc6b52bba7e
PL2,PL2+: Improve upper bound on normalised wdf

When wdf_upper_bound > doclength_lower_bound, we get a tighter bound
by evaluating at wdf = wdf_upper_bound.

In a simple test, this reduces wdfn by 36-64%, and resulting in the
upper bound being 9-33% lower.

(cherry picked from commit 01f7233a19460ba555f3cc13d964e862250668ca)
xapian-core/weight/pl2plusweight.cc
xapian-core/weight/pl2weight.cc