![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
Class for generating Utility Tables. More...
#include <simpleUTGenerator.h>
Public Member Functions | |
Constructors / Destructor | |
| SimpleUTGenerator () | |
| Default constructor. | |
| virtual | ~SimpleUTGenerator () |
| Destructor. | |
UT generation methods | |
| virtual void | generateUT (const Idx &varId, const Tensor< float > &ut) |
| Generates a UT using floats. | |
| virtual void | generateUT (const Idx &varId, const Tensor< double > &ut) |
| Generates a UT using doubles. | |
Class for generating Utility Tables.
This class implements a CPTGenerator UT generation algorithm.
Definition at line 63 of file simpleUTGenerator.h.
| gum::SimpleUTGenerator::SimpleUTGenerator | ( | ) |
Default constructor.
Definition at line 54 of file simpleUTGenerator.cpp.
References SimpleUTGenerator().
Referenced by SimpleUTGenerator(), and ~SimpleUTGenerator().
|
virtual |
Destructor.
Definition at line 60 of file simpleUTGenerator.cpp.
References SimpleUTGenerator().
Generates a UT using doubles.
| varId | The variable id of the UT owner. |
| ut | A reference on the UT to fill. |
Implements gum::UTGenerator.
Definition at line 80 of file simpleUTGenerator.cpp.
References gum::MultiDimDecorator< GUM_SCALAR >::domainSize(), gum::MultiDimDecorator< GUM_SCALAR >::populate(), and gum::randomProba().
Generates a UT using floats.
| varId | The variable id of the UT owner. |
| ut | A reference on the UT to fill. |
Implements gum::UTGenerator.
Definition at line 68 of file simpleUTGenerator.cpp.
References gum::MultiDimDecorator< GUM_SCALAR >::domainSize(), gum::MultiDimDecorator< GUM_SCALAR >::populate(), and gum::randomProba().