[mlpack-svn] r10904 - mlpack/trunk/src/mlpack/tests
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Dec 20 11:27:13 EST 2011
Author: rcurtin
Date: 2011-12-20 11:27:13 -0500 (Tue, 20 Dec 2011)
New Revision: 10904
Modified:
mlpack/trunk/src/mlpack/tests/tree_test.cpp
Log:
box() -> Box().
Modified: mlpack/trunk/src/mlpack/tests/tree_test.cpp
===================================================================
--- mlpack/trunk/src/mlpack/tests/tree_test.cpp 2011-12-20 15:33:51 UTC (rev 10903)
+++ mlpack/trunk/src/mlpack/tests/tree_test.cpp 2011-12-20 16:27:13 UTC (rev 10904)
@@ -638,7 +638,7 @@
PeriodicHRectBound<2> b;
BOOST_REQUIRE_EQUAL(b.Dim(), 0);
- BOOST_REQUIRE_EQUAL(b.box().n_elem, 0);
+ BOOST_REQUIRE_EQUAL(b.Box().n_elem, 0);
}
/**
@@ -652,9 +652,9 @@
BOOST_REQUIRE_EQUAL(b.Dim(), 2);
BOOST_REQUIRE_SMALL(b[0].Width(), 1e-5);
BOOST_REQUIRE_SMALL(b[1].Width(), 1e-5);
- BOOST_REQUIRE_EQUAL(b.box().n_elem, 2);
- BOOST_REQUIRE_CLOSE(b.box()[0], 5.0, 1e-5);
- BOOST_REQUIRE_CLOSE(b.box()[1], 6.0, 1e-5);
+ BOOST_REQUIRE_EQUAL(b.Box().n_elem, 2);
+ BOOST_REQUIRE_CLOSE(b.Box()[0], 5.0, 1e-5);
+ BOOST_REQUIRE_CLOSE(b.Box()[1], 6.0, 1e-5);
PeriodicHRectBound<2> d(arma::vec("2 3 4 5 6"));
@@ -664,12 +664,12 @@
BOOST_REQUIRE_SMALL(d[2].Width(), 1e-5);
BOOST_REQUIRE_SMALL(d[3].Width(), 1e-5);
BOOST_REQUIRE_SMALL(d[4].Width(), 1e-5);
- BOOST_REQUIRE_EQUAL(d.box().n_elem, 5);
- BOOST_REQUIRE_CLOSE(d.box()[0], 2.0, 1e-5);
- BOOST_REQUIRE_CLOSE(d.box()[1], 3.0, 1e-5);
- BOOST_REQUIRE_CLOSE(d.box()[2], 4.0, 1e-5);
- BOOST_REQUIRE_CLOSE(d.box()[3], 5.0, 1e-5);
- BOOST_REQUIRE_CLOSE(d.box()[4], 6.0, 1e-5);
+ BOOST_REQUIRE_EQUAL(d.Box().n_elem, 5);
+ BOOST_REQUIRE_CLOSE(d.Box()[0], 2.0, 1e-5);
+ BOOST_REQUIRE_CLOSE(d.Box()[1], 3.0, 1e-5);
+ BOOST_REQUIRE_CLOSE(d.Box()[2], 4.0, 1e-5);
+ BOOST_REQUIRE_CLOSE(d.Box()[3], 5.0, 1e-5);
+ BOOST_REQUIRE_CLOSE(d.Box()[4], 6.0, 1e-5);
}
/**
@@ -688,9 +688,9 @@
BOOST_REQUIRE_CLOSE(c[0].Hi(), 2.0, 1e-5);
BOOST_REQUIRE_CLOSE(c[1].Lo(), 2.0, 1e-5);
BOOST_REQUIRE_CLOSE(c[1].Hi(), 3.0, 1e-5);
- BOOST_REQUIRE_EQUAL(c.box().n_elem, 2);
- BOOST_REQUIRE_CLOSE(c.box()[0], 3.0, 1e-5);
- BOOST_REQUIRE_CLOSE(c.box()[1], 4.0, 1e-5);
+ BOOST_REQUIRE_EQUAL(c.Box().n_elem, 2);
+ BOOST_REQUIRE_CLOSE(c.Box()[0], 3.0, 1e-5);
+ BOOST_REQUIRE_CLOSE(c.Box()[1], 4.0, 1e-5);
}
/**
@@ -711,9 +711,9 @@
BOOST_REQUIRE_CLOSE(c[0].Hi(), 2.0, 1e-5);
BOOST_REQUIRE_CLOSE(c[1].Lo(), 2.0, 1e-5);
BOOST_REQUIRE_CLOSE(c[1].Hi(), 3.0, 1e-5);
- BOOST_REQUIRE_EQUAL(c.box().n_elem, 2);
- BOOST_REQUIRE_CLOSE(c.box()[0], 3.0, 1e-5);
- BOOST_REQUIRE_CLOSE(c.box()[1], 4.0, 1e-5);
+ BOOST_REQUIRE_EQUAL(c.Box().n_elem, 2);
+ BOOST_REQUIRE_CLOSE(c.Box()[0], 3.0, 1e-5);
+ BOOST_REQUIRE_CLOSE(c.Box()[1], 4.0, 1e-5);
}*/
/**
@@ -725,9 +725,9 @@
b.SetBoxSize(arma::vec("10 12"));
- BOOST_REQUIRE_EQUAL(b.box().n_elem, 2);
- BOOST_REQUIRE_CLOSE(b.box()[0], 10.0, 1e-5);
- BOOST_REQUIRE_CLOSE(b.box()[1], 12.0, 1e-5);
+ BOOST_REQUIRE_EQUAL(b.Box().n_elem, 2);
+ BOOST_REQUIRE_CLOSE(b.Box()[0], 10.0, 1e-5);
+ BOOST_REQUIRE_CLOSE(b.Box()[1], 12.0, 1e-5);
}*/
/**
More information about the mlpack-svn
mailing list