![]() |
aGrUM 3.0.0
a C++ library for (probabilistic) graphical models
|
Class implementing exact approximation policy (meaning a value is approximate to itself). More...
#include <agrum/base/core/approximations/exactPolicy.h>
Public Member Functions | |
Constructors / Destructors | |
| ExactPolicy () | |
| Default constructor. | |
Accessors/Modifiers | |
| INLINE GUM_ELEMENT | fromExact (const GUM_ELEMENT &value) const override |
| Convert value to approximation representation. | |
| void | combineAdd (const ApproximationPolicy< GUM_ELEMENT > *ap) override |
| Combine using addition with the given gum::ApproximationPolicy. | |
| void | combineSub (const ApproximationPolicy< GUM_ELEMENT > *ap) override |
| Combine using subtraction with the given gum::ApproximationPolicy. | |
| void | combineMult (const ApproximationPolicy< GUM_ELEMENT > *ap) override |
| Combine using multiplication with the given gum::ApproximationPolicy. | |
| void | combineDiv (const ApproximationPolicy< GUM_ELEMENT > *ap) override |
| Combine using division with the given gum::ApproximationPolicy. | |
| void | combineMax (const ApproximationPolicy< GUM_ELEMENT > *ap) override |
| Combine using max with the given gum::ApproximationPolicy. | |
| void | combineMin (const ApproximationPolicy< GUM_ELEMENT > *ap) override |
| Combine using min with the given gum::ApproximationPolicy. | |
Accessors / Modifiers | |
| virtual GUM_SCALAR | fromExact (const GUM_SCALAR &value) const=0 |
| Convert value to his approximation. | |
| virtual void | combineAdd (const ApproximationPolicy< GUM_SCALAR > *ap)=0 |
| Combine using addition with the given gum::ApproximationPolicy. | |
| virtual void | combineSub (const ApproximationPolicy< GUM_SCALAR > *ap)=0 |
| Combine using subtraction with the given gum::ApproximationPolicy. | |
| virtual void | combineMult (const ApproximationPolicy< GUM_SCALAR > *ap)=0 |
| Combine using multiplication with the given gum::ApproximationPolicy. | |
| virtual void | combineDiv (const ApproximationPolicy< GUM_SCALAR > *ap)=0 |
| Combine using division with the given gum::ApproximationPolicy. | |
| virtual void | combineMax (const ApproximationPolicy< GUM_SCALAR > *ap)=0 |
| Combine using max with the given gum::ApproximationPolicy. | |
| virtual void | combineMin (const ApproximationPolicy< GUM_SCALAR > *ap)=0 |
| Combine using min with the given gum::ApproximationPolicy. | |
Class implementing exact approximation policy (meaning a value is approximate to itself).
| GUM_ELEMENT | The type used for computations. |
Definition at line 67 of file exactPolicy.h.
|
default |
Default constructor.
|
pure virtualinherited |
Combine using addition with the given gum::ApproximationPolicy.
| ap | The policy to combine with. |
|
override |
Combine using addition with the given gum::ApproximationPolicy.
| ap | The policy to combine with. |
Definition at line 69 of file exactPolicy_tpl.h.
|
pure virtualinherited |
Combine using division with the given gum::ApproximationPolicy.
| ap | The policy to combine with. |
|
override |
Combine using division with the given gum::ApproximationPolicy.
| ap | The policy to combine with. |
Definition at line 83 of file exactPolicy_tpl.h.
|
pure virtualinherited |
Combine using max with the given gum::ApproximationPolicy.
| ap | The policy to combine with. |
|
override |
Combine using max with the given gum::ApproximationPolicy.
| ap | The policy to combine with. |
Definition at line 87 of file exactPolicy_tpl.h.
|
pure virtualinherited |
Combine using min with the given gum::ApproximationPolicy.
| ap | The policy to combine with. |
|
override |
Combine using min with the given gum::ApproximationPolicy.
| ap | The policy to combine with. |
Definition at line 91 of file exactPolicy_tpl.h.
|
pure virtualinherited |
Combine using multiplication with the given gum::ApproximationPolicy.
| ap | The policy to combine with. |
|
override |
Combine using multiplication with the given gum::ApproximationPolicy.
| ap | The policy to combine with. |
Definition at line 79 of file exactPolicy_tpl.h.
|
pure virtualinherited |
Combine using subtraction with the given gum::ApproximationPolicy.
| ap | The policy to combine with. |
|
override |
Combine using subtraction with the given gum::ApproximationPolicy.
| ap | The policy to combine with. |
Definition at line 74 of file exactPolicy_tpl.h.
|
pure virtualinherited |
Convert value to his approximation.
This method, at least in release mode, should not verify the limits
| value | The converted value. |
|
override |
Convert value to approximation representation.
| value | The converted value. |
Definition at line 63 of file exactPolicy_tpl.h.