![]() |
aGrUM
0.20.3
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. More... | |
virtual | ~UTGenerator () |
Destructor. More... | |
UT generation methods | |
virtual void | generateUT (const Idx &varId, const Potential< float > &ut)=0 |
Generates a UT using floats. More... | |
virtual void | generateUT (const Idx &varId, const Potential< double > &ut)=0 |
Generates a UT using doubles. More... | |
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 43 of file UTGenerator.h.
gum::UTGenerator::UTGenerator | ( | ) |
Default constructor.
Definition at line 34 of file UTGenerator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
virtual |
Destructor.
Definition at line 40 of file UTGenerator.cpp.
References gum::Set< Key, Alloc >::emplace().
|
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.
|
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.