There was a problem in reference-side initialization - needed to clear out the Epanechnikov moments, but didn't. Now the reference stats are reset everytime the dual-tree multiplier call is made

This commit is contained in:
Dongryeol Lee
2008-02-26 18:52:02 +00:00
parent 306aef24c5
commit 83a4a21e1f
@@ -24,16 +24,16 @@ void KrylovLpr<TKernel, TPruneRule>::InitializeQueryTree_(QueryTree *qnode) {
template<typename TKernel, typename TPruneRule>
void KrylovLpr<TKernel, TPruneRule>::InitializeReferenceStatistics_
(ReferenceTree *rnode, int column_index, const Vector &weights) {
// Clear the sum statistics before accumulating.
rnode->stat().Reset();
if(rnode->is_leaf()) {
// Temporary vector for computing the reference point expansion.
Vector reference_point_expansion;
reference_point_expansion.Init(row_length_);
// Clear the sum statistics before accumulating.
rnode->stat().Reset();
// For a leaf reference node, iterate over each reference point
// and compute the weighted vector and tally these up for the
// sum statistics owned by the reference node.