![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Class implementing exact approximation policy (meaning a value is approximate to itself). More...
#include <agrum/tools/core/approximations/exactPolicy.h>
Public Member Functions | |
Constructors / Destructors | |
ExactPolicy () | |
Default constructor. More... | |
Accessors/Modifiers | |
INLINE GUM_SCALAR | fromExact (const GUM_SCALAR &value) const |
Convert value to approximation representation. More... | |
void | combineAdd (const ApproximationPolicy< GUM_SCALAR > *ap) |
Combine using addition with the given gum::ApproximationPolicy. More... | |
void | combineSub (const ApproximationPolicy< GUM_SCALAR > *ap) |
Combine using substraction with the given gum::ApproximationPolicy. More... | |
void | combineMult (const ApproximationPolicy< GUM_SCALAR > *ap) |
Combine using multiplication with the given gum::ApproximationPolicy. More... | |
void | combineDiv (const ApproximationPolicy< GUM_SCALAR > *ap) |
Combine using division with the given gum::ApproximationPolicy. More... | |
void | combineMax (const ApproximationPolicy< GUM_SCALAR > *ap) |
Combine using max with the given gum::ApproximationPolicy. More... | |
void | combineMin (const ApproximationPolicy< GUM_SCALAR > *ap) |
Combine using min with the given gum::ApproximationPolicy. More... | |
Class implementing exact approximation policy (meaning a value is approximate to itself).
GUM_SCALAR | The type used for computations. |
Definition at line 47 of file exactPolicy.h.
gum::ExactPolicy< GUM_SCALAR >::ExactPolicy | ( | ) |
|
virtual |
Combine using addition with the given gum::ApproximationPolicy.
ap | The policy to combine with. |
Implements gum::ApproximationPolicy< GUM_SCALAR >.
Definition at line 47 of file exactPolicy_tpl.h.
|
virtual |
Combine using division with the given gum::ApproximationPolicy.
ap | The policy to combine with. |
Implements gum::ApproximationPolicy< GUM_SCALAR >.
Definition at line 61 of file exactPolicy_tpl.h.
|
virtual |
Combine using max with the given gum::ApproximationPolicy.
ap | The policy to combine with. |
Implements gum::ApproximationPolicy< GUM_SCALAR >.
Definition at line 65 of file exactPolicy_tpl.h.
|
virtual |
Combine using min with the given gum::ApproximationPolicy.
ap | The policy to combine with. |
Implements gum::ApproximationPolicy< GUM_SCALAR >.
Definition at line 69 of file exactPolicy_tpl.h.
|
virtual |
Combine using multiplication with the given gum::ApproximationPolicy.
ap | The policy to combine with. |
Implements gum::ApproximationPolicy< GUM_SCALAR >.
Definition at line 57 of file exactPolicy_tpl.h.
|
virtual |
Combine using substraction with the given gum::ApproximationPolicy.
ap | The policy to combine with. |
Implements gum::ApproximationPolicy< GUM_SCALAR >.
Definition at line 52 of file exactPolicy_tpl.h.
|
virtual |
Convert value to approximation representation.
value | The converted value. |
Implements gum::ApproximationPolicy< GUM_SCALAR >.
Definition at line 41 of file exactPolicy_tpl.h.