|
ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
|
Numeric comparison utilities. More...
Functions | |
| template<typename T> | |
| bool | collinear (types::Vector< T > const &a, types::Vector< T > const &b) |
| Check whether two vectors are collinear (parallel or anti-parallel). | |
| template<typename A, typename B> | |
| bool | is_approx (A a, B b) |
| Overload using the default APPROX_THRESHOLD. | |
| template<typename A, typename B, typename T> | |
| bool | is_approx (A a, B b, T threshold) |
| Check whether two scalars are approximately equal. | |
| template<typename A, typename B> | |
| bool | is_module_approx (A a, B b) |
| Check whether the absolute values of two scalars are approximately equal. | |
Numeric comparison utilities.
| bool ppforest2::math::collinear | ( | types::Vector< T > const & | a, |
| types::Vector< T > const & | b ) |
Check whether two vectors are collinear (parallel or anti-parallel).
| a | First vector. |
| b | Second vector (same dimension as a). |
|
inline |
Overload using the default APPROX_THRESHOLD.
|
inline |
Check whether two scalars are approximately equal.
| a | First value. |
| b | Second value. |
| threshold | Maximum allowed absolute difference. |
|
inline |
Check whether the absolute values of two scalars are approximately equal.