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.

Namespaces

namespace  dai

Classes

class  dai::VarSet
 Represents a set of variables. More...

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 Thu Aug 5 19:04:02 2010 for libDAI by  doxygen 1.5.5