Replace REQUIRE_CLOSE() instead of REQUIRE_CLOSE().

This commit is contained in:
cmercier
2020-05-25 17:40:19 +02:00
parent 204986230e
commit f57711ca9b
@@ -94,8 +94,8 @@ BOOST_AUTO_TEST_CASE(TestCenterDataTrueScaleDataTrue)
double yMean = arma::mean(y);
BOOST_REQUIRE_SMALL((double) abs(sum(estimator.DataOffset() - xMean)), 1e-6);
BOOST_REQUIRE_SMALL((double) abs(estimator.ResponsesOffset() - yMean), 1e-6);
BOOST_REQUIRE_SMALL((double) abs(sum(estimator.DataScale() - xStd)), 1e-6);
BOOST_REQUIRE_CLOSE(estimator.ResponsesOffset(), yMean, 1e-6);
}
// Check that Train() does not fail with two colinear vectors.