|
libDAI
|
Predefined cost functions that can be used with BBP. More...
#include <dai/bbp.h>
Public Member Functions | |
| BBPCostFunction () | |
| Default constructor. | |
| BBPCostFunction (const BBPCostFunctionBase &x) | |
| Construct from BBPCostFunctionBase x. | |
| bool | needGibbsState () const |
| Returns whether this cost function depends on having a Gibbs state. | |
| 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. | |
| BBPCostFunction & | operator= (const BBPCostFunctionBase &x) |
| Assignment operator. | |
Predefined cost functions that can be used with BBP.
| dai::BBPCostFunction::BBPCostFunction | ( | ) | [inline] |
Default constructor.
| dai::BBPCostFunction::BBPCostFunction | ( | const BBPCostFunctionBase & | x | ) | [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.
| BBPCostFunction& dai::BBPCostFunction::operator= | ( | const BBPCostFunctionBase & | x | ) | [inline] |
Assignment operator.
1.7.4