![]() |
aGrUM
0.16.0
|
Class implementing exact approximation policy (meaning a value is approximate to itself). More...
#include <agrum/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 48 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 49 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 66 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 71 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 76 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 61 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 55 of file exactPolicy_tpl.h.
|
virtual |
Convert value to approximation representation.
value | The converted value. |
Implements gum::ApproximationPolicy< GUM_SCALAR >.
Definition at line 43 of file exactPolicy_tpl.h.