[mlpack-svn] r16525 - mlpack/trunk/src/mlpack/core/tree/binary_space_tree
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue May 20 15:18:34 EDT 2014
Author: andrewmw94
Date: Tue May 20 15:18:33 2014
New Revision: 16525
Log:
readability changes to BinarySpaceTree::FurthestPointDistance()
Modified:
mlpack/trunk/src/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp
Modified: mlpack/trunk/src/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp
==============================================================================
--- mlpack/trunk/src/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp (original)
+++ mlpack/trunk/src/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp Tue May 20 15:18:33 2014
@@ -441,9 +441,8 @@
if (!IsLeaf())
return 0.0;
- // Otherwise half of the maximum bound distance is sufficient (this is the
- // distance from a corner of the bound to the centroid).
- return 0.5 * bound.MaxDistance(bound);
+ // Otherwise return the distance from a corner of the bound to the centroid.
+ return 0.5 * bound.Diameter();
}
/**
More information about the mlpack-svn
mailing list