include/dai/varset.h File Reference

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

namespace  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.
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.

Detailed Description

Defines the VarSet class, which represents a set of random variables.

Generated on Sun May 9 16:51:32 2010 for libDAI by  doxygen 1.6.3