libDAI
|
Defines the VarSet class, which represents a set of random variables. More...
#include <vector>
#include <map>
#include <ostream>
#include <dai/var.h>
#include <dai/util.h>
#include <dai/smallset.h>
Go to the source code of this file.
Classes | |
class | dai::VarSet |
Represents a set of variables. More... | |
Namespaces | |
dai | |
Namespace for libDAI. | |
Functions | |
size_t | dai::calcLinearState (const VarSet &vs, const std::map< Var, size_t > &state) |
Calculates the linear index in the Cartesian product of the variables in vs that corresponds to a particular joint assignment of the variables, specified by state. More... | |
std::map< Var, size_t > | dai::calcState (const VarSet &vs, size_t linearState) |
Calculates the joint assignment of the variables in vs corresponding to the linear index linearState. More... | |
Defines the VarSet class, which represents a set of random variables.