![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Mother class for all approximation policy classes. More...
#include <approximationPolicy.h>
Public Member Functions | |
Constructors / Destructors | |
ApproximationPolicy () | |
Default constructor. More... | |
ApproximationPolicy (const ApproximationPolicy< GUM_SCALAR > *md) | |
Copy constructor. More... | |
Accessors / Modifiers | |
virtual GUM_SCALAR | fromExact (const GUM_SCALAR &value) const =0 |
Convert value to his approximation. More... | |
virtual void | combineAdd (const ApproximationPolicy< GUM_SCALAR > *ap)=0 |
Combine using addition with the given gum::ApproximationPolicy. More... | |
virtual void | combineSub (const ApproximationPolicy< GUM_SCALAR > *ap)=0 |
Combine using substraction with the given gum::ApproximationPolicy. More... | |
virtual void | combineMult (const ApproximationPolicy< GUM_SCALAR > *ap)=0 |
Combine using multiplication with the given gum::ApproximationPolicy. More... | |
virtual void | combineDiv (const ApproximationPolicy< GUM_SCALAR > *ap)=0 |
Combine using division with the given gum::ApproximationPolicy. More... | |
virtual void | combineMax (const ApproximationPolicy< GUM_SCALAR > *ap)=0 |
Combine using max with the given gum::ApproximationPolicy. More... | |
virtual void | combineMin (const ApproximationPolicy< GUM_SCALAR > *ap)=0 |
Combine using min with the given gum::ApproximationPolicy. More... | |
Mother class for all approximation policy classes.
Definition at line 48 of file approximationPolicy.h.
|
inline |
|
inline |
|
pure virtual |
Combine using addition with the given gum::ApproximationPolicy.
ap | The policy to combine with. |
Implemented in gum::LinearApproximationPolicy< GUM_SCALAR >, and gum::ExactPolicy< GUM_SCALAR >.
|
pure virtual |
Combine using division with the given gum::ApproximationPolicy.
ap | The policy to combine with. |
Implemented in gum::LinearApproximationPolicy< GUM_SCALAR >, and gum::ExactPolicy< GUM_SCALAR >.
|
pure virtual |
Combine using max with the given gum::ApproximationPolicy.
ap | The policy to combine with. |
Implemented in gum::LinearApproximationPolicy< GUM_SCALAR >, and gum::ExactPolicy< GUM_SCALAR >.
|
pure virtual |
Combine using min with the given gum::ApproximationPolicy.
ap | The policy to combine with. |
Implemented in gum::LinearApproximationPolicy< GUM_SCALAR >, and gum::ExactPolicy< GUM_SCALAR >.
|
pure virtual |
Combine using multiplication with the given gum::ApproximationPolicy.
ap | The policy to combine with. |
Implemented in gum::LinearApproximationPolicy< GUM_SCALAR >, and gum::ExactPolicy< GUM_SCALAR >.
|
pure virtual |
Combine using substraction with the given gum::ApproximationPolicy.
ap | The policy to combine with. |
Implemented in gum::LinearApproximationPolicy< GUM_SCALAR >, and gum::ExactPolicy< GUM_SCALAR >.
|
pure virtual |
Convert value to his approximation.
This method, at least in release mode, should not verify the limits
value | The converted value. |
Implemented in gum::LinearApproximationPolicy< GUM_SCALAR >, and gum::ExactPolicy< GUM_SCALAR >.