Skip to content

Commit 894c1b9

Browse files
committed
Merge pull request flann-lib#188 from trebor8x/initializeCenterChooser
Extend CenterChooser initialization
2 parents 613fd24 + 60074a3 commit 894c1b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cpp/flann/algorithms/hierarchical_clustering_index.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ class HierarchicalClusteringIndex : public NNIndex<Distance>
128128
initCenterChooser();
129129

130130
setDataset(inputData);
131+
132+
chooseCenters_->setDataSize(veclen_);
131133
}
132134

133135

0 commit comments

Comments
 (0)