Cpp ML Library  1.0.0
A library of Machine Learning Algorithmns seen from the Udemy course Machine Learning A to Z.
TestUtils.hpp
1 // TestUtils.hpp
2 #ifndef TEST_UTILS_HPP
3 #define TEST_UTILS_HPP
4 #include <cmath>
5 inline bool approxEqual(double a, double b, double epsilon = 0.1) {
6  return std::fabs(a - b) < epsilon;
7 }
8 
9 #endif // TEST_UTILS_HPP