![]() |
aGrUM 3.3.2
a C++ library for (probabilistic) graphical models
|
Indicate whether two elements are (almost) different or not. More...
#include <utils_misc.h>
Public Member Functions | |
| bool | operator() (const T &t1, const T &t2) |
Private Attributes | |
| double | _epsilon_ {almostDifferentEpsilon()} |
Indicate whether two elements are (almost) different or not.
The tolerance (core.epsilonStandard) is read once, when the functor is built, and not at each comparison: a functor is meant to be created for a whole comparison (a loop on the elements of two containers) and an object built before a change of the configuration keeps its tolerance.
| T | The type of the elements to compare. |
Definition at line 176 of file utils_misc.h.
| bool gum::AlmostDifferent< T >::operator() | ( | const T & | t1, |
| const T & | t2 ) |
Definition at line 129 of file utils_misc_tpl.h.
References _epsilon_.
|
private |
Definition at line 180 of file utils_misc.h.
Referenced by operator()().