Skip to content

Commit ebf12d5

Browse files
committed
Fix bug in RowAssigner::AssignAdhoc() which leads to overdensity.
1 parent 7b98ffa commit ebf12d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Index/src/TermTableBuilder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ namespace BitFunnel
356356

357357
// Update m_adhocTotal with this term's contribution to the total
358358
// number of bits.
359-
m_adhocTotal += frequency * count;
359+
double f = Term::FrequencyAtRank(frequency, m_rank);
360+
m_adhocTotal += f * count;
360361
}
361362

362363

0 commit comments

Comments
 (0)