Exact decoding class.
More...
#include <DecodeExact.h>
Exact decoding class.
- Note
- Use this class only if \( nStates^{nNodes} < 2^{32}\)
- Author
- Sergey G. Kosov, serge.nosp@m.y.ko.nosp@m.sov@p.nosp@m.roje.nosp@m.ct-10.nosp@m..de
Definition at line 17 of file DecodeExact.h.
◆ CDecodeExact()
DirectGraphicalModels::CDecodeExact::CDecodeExact |
( |
IGraphPairwise & |
graph | ) |
|
|
inline |
◆ ~CDecodeExact()
virtual DirectGraphicalModels::CDecodeExact::~CDecodeExact |
( |
void |
| ) |
|
|
inlinevirtual |
◆ calculatePotentials()
vec_float_t DirectGraphicalModels::CDecodeExact::calculatePotentials |
( |
void |
| ) |
const |
|
protected |
Calculates potentials for all possible configurations.
This function is used in exact inference / decoding
- Returns
- \(nStates^{nNodes}\) potentials, corresponding to the all possible configurations (states destributed along the nodes)
Definition at line 58 of file DecodeExact.cpp.
◆ decode()
vec_byte_t DirectGraphicalModels::CDecodeExact::decode |
( |
Mat & |
lossMatrix = EmptyMat | ) |
const |
|
virtual |
◆ getGraphPairwise()
IGraphPairwise& DirectGraphicalModels::CDecodeExact::getGraphPairwise |
( |
void |
| ) |
const |
|
inlineprotected |
Returns the graph.
- Returns
- The graph
Definition at line 40 of file DecodeExact.h.
◆ incState()
void DirectGraphicalModels::CDecodeExact::incState |
( |
vec_byte_t & |
state | ) |
const |
|
protected |
Increases the state by one, i.e. switches the state array to the consequent configuration.
This function is used in exact inference / decoding
- Parameters
-
state | Array of nNodes elements with the current configuration (states destributed along the nodes) |
Definition at line 49 of file DecodeExact.cpp.
◆ setState()
void DirectGraphicalModels::CDecodeExact::setState |
( |
vec_byte_t & |
state, |
|
|
qword |
configuration |
|
) |
| const |
|
protected |
Sets the state according to the configuration index configuration.
This function is used in exact inference / decoding
- Parameters
-
state | Array of nNodes elements with the current configuration (states destributed along the nodes) |
configuration | Configuration index \(\in[0; nStates^{nNodes}]\) |
Definition at line 39 of file DecodeExact.cpp.
The documentation for this class was generated from the following files: