Removed confusing comments

This commit is contained in:
Mikolaj Kaczmarek
2020-09-16 00:29:57 +02:00
parent 129438e765
commit fecb4eb59d
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -100,7 +100,8 @@ TEST_CASE_METHOD(PCATestFixture, "PCANoVarRetainTest", "[PCAMainTest]")
/**
* Check that we can't specify an invalid new dimensionality.
*/
TEST_CASE_METHOD(PCATestFixture, "PCATooHighNewDimensionalityTest", "[PCAMainTest]")
TEST_CASE_METHOD(PCATestFixture, "PCATooHighNewDimensionalityTest",
"[PCAMainTest]")
{
arma::mat x = arma::randu<arma::mat>(5, 5);
+2 -2
View File
@@ -325,11 +325,11 @@ TEST_CASE("PCAScalingTest", "[PCATest]")
REQUIRE(std::abs(eigvec(2, 1)) == Approx(1.0).epsilon(0.0035));
// The third component should have the same absolute value characteristics as
// the first (plus 20% tolerance).
// the first (plus tolerance).
REQUIRE(std::abs(eigvec(0, 0)) == Approx(sqrt(2) / 2).epsilon(0.0035));
REQUIRE(std::abs(eigvec(1, 0)) == Approx(sqrt(2) / 2).epsilon(0.0035));
REQUIRE(eigvec(2, 0) == Approx(0.0).margin(0.1)); // Large tolerance for noise.
// The eigenvalues should sum to three.
REQUIRE(accu(eigval) == Approx(3.0).epsilon(0.1)); // 10% tolerance.
REQUIRE(accu(eigval) == Approx(3.0).epsilon(0.001));
}