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.
|
Detailed Description
Predefined cost functions that can be used with BBP.
Constructor & Destructor Documentation
dai::BBPCostFunction::BBPCostFunction |
( |
| ) |
|
|
inline |
dai::BBPCostFunction::BBPCostFunction |
( |
const BBPCostFunctionBase & |
x | ) |
|
|
inline |
Construct from BBPCostFunctionBase x.
Member Function Documentation
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 |
The documentation for this class was generated from the following files:
- include/dai/bbp.h
- src/bbp.cpp