Direct Graphical Models  v.1.5.1
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
CGraphm_pGraph
 Pointer to the graph. More...
 

Detailed Description

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 16 of file DecodeExact.h.

Constructor & Destructor Documentation

DirectGraphicalModels::CDecodeExact::CDecodeExact ( CGraph pGraph)
inline

Constructor.

Parameters
pGraphThe graph

Definition at line 23 of file DecodeExact.h.

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

Definition at line 24 of file DecodeExact.h.

Member Function Documentation

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

Exact decoding.

Parameters
nItis not used
lossMatrixis not used
Returns
The most probable configuration

Reimplemented from DirectGraphicalModels::CDecode.

Definition at line 8 of file DecodeExact.cpp.

Here is the call graph for this function:


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