Direct Graphical Models  v.1.5.2
DirectGraphicalModels::CDecodeExact Class Reference

Exact decoding class. More...

#include <DecodeExact.h>

Inheritance diagram for DirectGraphicalModels::CDecodeExact:
Collaboration diagram for DirectGraphicalModels::CDecodeExact:

Public Member Functions

 CDecodeExact (CGraph *pGraph)
 Constructor. More...
virtual ~CDecodeExact (void)
virtual vec_byte_t decode (unsigned int nIt=0, Mat &lossMatrix=Mat()) const
 Exact decoding. More...
- Public Member Functions inherited from DirectGraphicalModels::CDecode
virtual ~CDecode (void)

Additional Inherited Members

- Static Public Member Functions inherited from DirectGraphicalModels::CDecode
static vec_byte_t decode (const CGraph *pGraph, Mat &lossMatrix=Mat())
 Approximate decoding. More...
static Mat getDefaultLossMatrix (byte nStates)
 Returns a default loss matrix \(L\). More...
- Protected Member Functions inherited from DirectGraphicalModels::CDecode
 CDecode (CGraph *pGraph)
 Constructor. More...
void setState (vec_byte_t &state, qword configuration) const
 Sets the state according to the configuration index configuration. More...
void incState (vec_byte_t &state) const
 Increases the state by one, i.e. switches the state array to the consequent configuration. More...
vec_float_t calculatePotentials (void) const
 Calculates potentials for all possible configurations. More...
- Protected Attributes inherited from DirectGraphicalModels::CDecode
 Pointer to the graph. More...

Detailed Description

Exact decoding class.

Use this class only if \( nStates^{nNodes} < 2^{32}\)
Sergey G. Kosov,

Definition at line 16 of file DecodeExact.h.

Constructor & Destructor Documentation

◆ CDecodeExact()

DirectGraphicalModels::CDecodeExact::CDecodeExact ( CGraph pGraph)


pGraphThe graph

Definition at line 23 of file DecodeExact.h.

◆ ~CDecodeExact()

virtual DirectGraphicalModels::CDecodeExact::~CDecodeExact ( void  )

Definition at line 24 of file DecodeExact.h.

Here is the call graph for this function:

Member Function Documentation

◆ decode()

vec_byte_t DirectGraphicalModels::CDecodeExact::decode ( unsigned int  nIt = 0,
Mat &  lossMatrix = Mat() 
) const

Exact decoding.

nItis not used
lossMatrixis not used
The most probable configuration

Reimplemented from DirectGraphicalModels::CDecode.

Definition at line 8 of file DecodeExact.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: