44 std::vector< float > v;
47 v.push_back((
float)rand() * 1000);
57 std::vector< double > v;
60 v.push_back((
double)rand() * 1000);
aGrUM's Potential is a multi-dimensional array with tensor operators.
Class for generating Utility Tables.
virtual Size domainSize() const final
Returns the product of the variables domain size.
SimpleUTGenerator()
Default constructor.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual void populate(const std::vector< GUM_SCALAR > &v) const final
Automatically fills this MultiDimContainer with the values in v.
virtual void generateUT(const Idx &varId, const Potential< float > &ut)
Generates a UT using floats.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual ~SimpleUTGenerator()
Destructor.
Size Idx
Type for indexes.
std::size_t Size
In aGrUM, hashed values are unsigned long int.