36 #ifndef GUM_FUNCTORS_H 37 #define GUM_FUNCTORS_H 41 #include <agrum/tools/core/argMaxSet.h> 54 template <
class GUM_SCALAR >
61 GUM_SCALAR
operator()(
const GUM_SCALAR& x,
const GUM_SCALAR& y)
const {
return x >= y ? x : y; }
77 template <
class GUM_SCALAR >
84 GUM_SCALAR
operator()(
const GUM_SCALAR& x,
const GUM_SCALAR& y)
const {
return x <= y ? x : y; }
105 template <
class GUM_SCALAR >
112 GUM_SCALAR
operator()(
const GUM_SCALAR& x,
const GUM_SCALAR& y)
const {
113 return x.first >= y.first ? x : y;
GUM_SCALAR first_argument_type
INLINE void emplace(Args &&... args)
GUM_SCALAR second_argument_type
GUM_SCALAR operator()(const GUM_SCALAR &x, const GUM_SCALAR &y) const
GUM_SCALAR operator()(const GUM_SCALAR &x, const GUM_SCALAR &y) const
Arg Max function object class.
Maximization function object classReturns the maximum of its two arguments.
GUM_SCALAR second_argument_type
GUM_SCALAR first_argument_type
Minimization function object classReturns the minimum of its two arguments.
GUM_SCALAR first_argument_type
GUM_SCALAR operator()(const GUM_SCALAR &x, const GUM_SCALAR &y) const
GUM_SCALAR second_argument_type