[mlpack-svn] r14403 - mlpack/trunk/src/mlpack/methods/rann
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Feb 26 18:07:01 EST 2013
Author: rcurtin
Date: 2013-02-26 18:07:01 -0500 (Tue, 26 Feb 2013)
New Revision: 14403
Modified:
mlpack/trunk/src/mlpack/methods/rann/ra_search.hpp
Log:
Update statistic API.
Modified: mlpack/trunk/src/mlpack/methods/rann/ra_search.hpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/rann/ra_search.hpp 2013-02-26 23:04:40 UTC (rev 14402)
+++ mlpack/trunk/src/mlpack/methods/rann/ra_search.hpp 2013-02-26 23:07:01 UTC (rev 14403)
@@ -56,29 +56,14 @@
RAQueryStat() : bound(SortPolicy::WorstDistance()), numSamplesMade(0) { }
/**
- * Initialization for a leaf, required by the StatisticType policy.
+ * Initialization for a node.
*/
- template<typename MatType>
- RAQueryStat(const MatType& /* dataset */,
- const size_t /* begin */,
- const size_t /* count */) :
+ template<typename TreeType>
+ RAQueryStat(const TreeType& /* node */) :
bound(SortPolicy::WorstDistance()),
numSamplesMade(0)
{ }
- /**
- * Initialization for a node, required by the StatisticType policy.
- */
- template<typename MatType>
- RAQueryStat(const MatType& /* dataset */,
- const size_t /* begin */,
- const size_t /* count */,
- const RAQueryStat& /* leftStat */,
- const RAQueryStat& /* rightStat */) :
- bound(SortPolicy::WorstDistance()),
- numSamplesMade(0)
- { }
-
//! Get the bound.
double Bound() const { return bound; }
//! Modify the bound.
More information about the mlpack-svn
mailing list