![]() |
aGrUM 3.1.1
a C++ library for (probabilistic) graphical models
|
Class for generating Utility Tables. More...
#include <simpleUTGenerator.h>
Public Member Functions | |
Constructors / Destructor | |
| SimpleUTGenerator () | |
| Default constructor. | |
| ~SimpleUTGenerator () override | |
| Destructor. | |
UT generation methods | |
| void | generateUT (const Idx &varId, const Tensor< float > &ut) override |
| Generates a UT using floats. | |
| void | generateUT (const Idx &varId, const Tensor< double > &ut) override |
| 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().
|
override |
Destructor.
Definition at line 60 of file simpleUTGenerator.cpp.
References SimpleUTGenerator().
|
overridevirtual |
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_ELEMENT >::domainSize(), gum::MultiDimDecorator< GUM_ELEMENT >::populate(), and gum::randomProba().
|
overridevirtual |
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_ELEMENT >::domainSize(), gum::MultiDimDecorator< GUM_ELEMENT >::populate(), and gum::randomProba().