[mlpack-svn] r15013 - mlpack/trunk/src/mlpack/core/tree/cover_tree
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon May 6 10:58:20 EDT 2013
Author: rcurtin
Date: 2013-05-06 10:58:16 -0400 (Mon, 06 May 2013)
New Revision: 15013
Modified:
mlpack/trunk/src/mlpack/core/tree/cover_tree/cover_tree_impl.hpp
Log:
Incompetence is a surprisingly accurate predictor of build-breaking checkins.
Modified: mlpack/trunk/src/mlpack/core/tree/cover_tree/cover_tree_impl.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/tree/cover_tree/cover_tree_impl.hpp 2013-05-06 02:11:18 UTC (rev 15012)
+++ mlpack/trunk/src/mlpack/core/tree/cover_tree/cover_tree_impl.hpp 2013-05-06 14:58:16 UTC (rev 15013)
@@ -501,8 +501,8 @@
//! Return the minimum and maximum distance to another node.
template<typename MetricType, typename RootPointPolicy, typename StatisticType>
-double CoverTree<MetricType, RootPointPolicy, StatisticType>::RangeDistance(
- const CoverTree* other) const
+math::Range CoverTree<MetricType, RootPointPolicy, StatisticType>::
+ RangeDistance(const CoverTree* other) const
{
const double distance = metric->Evaluate(dataset.unsafe_col(point),
other->Dataset().unsafe_col(other->Point()));
@@ -519,9 +519,9 @@
//! Return the minimum and maximum distance to another node given that the
//! point-to-point distance has already been calculated.
template<typename MetricType, typename RootPointPolicy, typename StatisticType>
-double CoverTree<MetricType, RootPointPolicy, StatisticType>::RangeDistance(
- const CoverTree* other,
- const double distance) const
+math::Range CoverTree<MetricType, RootPointPolicy, StatisticType>::
+ RangeDistance(const CoverTree* other,
+ const double distance) const
{
math::Range result;
result.Lo() = distance - furthestDescendantDistance -
@@ -534,8 +534,8 @@
//! Return the minimum and maximum distance to another point.
template<typename MetricType, typename RootPointPolicy, typename StatisticType>
-double CoverTree<MetricType, RootPointPolicy, StatisticType>::RangeDistance(
- const arma::vec& other) const
+math::Range CoverTree<MetricType, RootPointPolicy, StatisticType>::
+ RangeDistance(const arma::vec& other) const
{
const double distance = metric->Evaluate(dataset.unsafe_col(point), other);
@@ -546,9 +546,9 @@
//! Return the minimum and maximum distance to another point given that the
//! point-to-point distance has already been calculated.
template<typename MetricType, typename RootPointPolicy, typename StatisticType>
-double CoverTree<MetricType, RootPointPolicy, StatisticType>::RangeDistance(
- const arma::vec& other,
- const double distance) const
+math::Range CoverTree<MetricType, RootPointPolicy, StatisticType>::
+ RangeDistance(const arma::vec& other,
+ const double distance) const
{
return math::Range(distance - furthestDescendantDistance,
distance + furthestDescendantDistance);
More information about the mlpack-svn
mailing list