libDAI
|
Predefined cost functions that can be used with BBP. More...
#include <dai/bbp.h>
Inherits BBPCostFunctionBase.
Public Member Functions | |
BBPCostFunction () | |
Default constructor. More... | |
BBPCostFunction (const BBPCostFunctionBase &x) | |
Construct from BBPCostFunctionBase x. More... | |
bool | needGibbsState () const |
Returns whether this cost function depends on having a Gibbs state. More... | |
Real | evaluate (const InfAlg &ia, const std::vector< size_t > *stateP) const |
Evaluates cost function in state stateP using the information in inference algorithm ia. More... | |
BBPCostFunction & | operator= (const BBPCostFunctionBase &x) |
Assignment operator. More... | |
Predefined cost functions that can be used with BBP.
|
inline |
Default constructor.
|
inline |
Construct from BBPCostFunctionBase x.
bool dai::BBPCostFunction::needGibbsState | ( | ) | const |
Returns whether this cost function depends on having a Gibbs state.
Real dai::BBPCostFunction::evaluate | ( | const InfAlg & | ia, |
const std::vector< size_t > * | stateP | ||
) | const |
Evaluates cost function in state stateP using the information in inference algorithm ia.
|
inline |
Assignment operator.