[mlpack-svn] r12803 - mlpack/trunk/src/mlpack/tests

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Sun May 27 15:04:51 EDT 2012


Author: rcurtin
Date: 2012-05-27 15:04:50 -0400 (Sun, 27 May 2012)
New Revision: 12803

Modified:
   mlpack/trunk/src/mlpack/tests/tree_test.cpp
Log:
Relax the separation constraint to include equality (in accordance with the
paper).


Modified: mlpack/trunk/src/mlpack/tests/tree_test.cpp
===================================================================
--- mlpack/trunk/src/mlpack/tests/tree_test.cpp	2012-05-27 18:52:52 UTC (rev 12802)
+++ mlpack/trunk/src/mlpack/tests/tree_test.cpp	2012-05-27 19:04:50 UTC (rev 12803)
@@ -1536,7 +1536,7 @@
   double distance = MetricType::Evaluate(dataset.col(constantPoint),
       dataset.col(nodePoint));
 
-  BOOST_REQUIRE_GT(distance, minDistance);
+  BOOST_REQUIRE_GE(distance, minDistance);
 }
 
 template<typename TreeType, typename MetricType>




More information about the mlpack-svn mailing list