![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
Abstract class for generating Utility Tables. More...
#include <UTGenerator.h>
Public Member Functions | |
Constructors / Destructor | |
| UTGenerator () | |
| Default constructor. | |
| virtual | ~UTGenerator () |
| Destructor. | |
UT generation methods | |
| virtual void | generateUT (const Idx &varId, const Tensor< float > &ut)=0 |
| Generates a UT using floats. | |
| virtual void | generateUT (const Idx &varId, const Tensor< double > &ut)=0 |
| Generates a UT using doubles. | |
Abstract class for generating Utility Tables.
This abstract class is an implementation of the strategy pattern to help changing UT generation policies for the InfluenceDiagramGenerator class.
Definition at line 63 of file UTGenerator.h.
| gum::UTGenerator::UTGenerator | ( | ) |
Default constructor.
Definition at line 54 of file UTGenerator.cpp.
References UTGenerator().
Referenced by UTGenerator(), and ~UTGenerator().
|
virtual |
Destructor.
Definition at line 60 of file UTGenerator.cpp.
References UTGenerator().
|
pure virtual |
Generates a UT using doubles.
| varId | The variable id of the UT owner. |
| ut | A reference on the UT to fill. |
Implemented in gum::SimpleUTGenerator.
|
pure virtual |
Generates a UT using floats.
| varId | The variable id of the UT owner. |
| ut | A reference on the UT to fill. |
Implemented in gum::SimpleUTGenerator.