All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

A structure defined inside HmmTopology to represent a HMM state. More...

#include <hmm-topology.h>

Collaboration diagram for HmmTopology::HmmState:

Public Member Functions

 HmmState (int32 pdf_class)
 
 HmmState (int32 forward_pdf_class, int32 self_loop_pdf_class)
 
bool operator== (const HmmState &other) const
 
 HmmState ()
 

Public Attributes

int32 forward_pdf_class
 The Pdf-classes forward-pdf-class, typically 0, 1 or 2 (the same as the HMM-state index), but may be different to enable us to hardwire sharing of state, and may be equal to kNoPdf == -1 in order to specify nonemitting states (unusual). More...
 
int32 self_loop_pdf_class
 The Pdf-classes self-loop pdf-class, similar to Pdf-classes forward-pdf-class. More...
 
std::vector< std::pair< int32,
BaseFloat > > 
transitions
 A list of transitions, indexed by what we call a 'transition-index'. More...
 

Detailed Description

A structure defined inside HmmTopology to represent a HMM state.

Definition at line 97 of file hmm-topology.h.

Constructor & Destructor Documentation

HmmState ( int32  pdf_class)
inlineexplicit

Definition at line 112 of file hmm-topology.h.

112  {
113  this->forward_pdf_class = pdf_class;
114  this->self_loop_pdf_class = pdf_class;
115  }
int32 forward_pdf_class
The Pdf-classes forward-pdf-class, typically 0, 1 or 2 (the same as the HMM-state index)...
Definition: hmm-topology.h:101
int32 self_loop_pdf_class
The Pdf-classes self-loop pdf-class, similar to Pdf-classes forward-pdf-class.
Definition: hmm-topology.h:105
HmmState ( int32  forward_pdf_class,
int32  self_loop_pdf_class 
)
inlineexplicit

Definition at line 116 of file hmm-topology.h.

References HmmTopology::HmmState::forward_pdf_class, KALDI_ASSERT, and HmmTopology::HmmState::self_loop_pdf_class.

116  {
121  }
static const int32 kNoPdf
A constant used in the HmmTopology class as the pdf-class kNoPdf, which is used when a HMM-state is n...
Definition: hmm-topology.h:87
#define KALDI_ASSERT(cond)
Definition: kaldi-error.h:169
int32 forward_pdf_class
The Pdf-classes forward-pdf-class, typically 0, 1 or 2 (the same as the HMM-state index)...
Definition: hmm-topology.h:101
int32 self_loop_pdf_class
The Pdf-classes self-loop pdf-class, similar to Pdf-classes forward-pdf-class.
Definition: hmm-topology.h:105
HmmState ( )
inline

Definition at line 129 of file hmm-topology.h.

int32 forward_pdf_class
The Pdf-classes forward-pdf-class, typically 0, 1 or 2 (the same as the HMM-state index)...
Definition: hmm-topology.h:101
int32 self_loop_pdf_class
The Pdf-classes self-loop pdf-class, similar to Pdf-classes forward-pdf-class.
Definition: hmm-topology.h:105

Member Function Documentation

bool operator== ( const HmmState other) const
inline

Definition at line 123 of file hmm-topology.h.

References HmmTopology::HmmState::forward_pdf_class, HmmTopology::HmmState::self_loop_pdf_class, and HmmTopology::HmmState::transitions.

123  {
124  return (forward_pdf_class == other.forward_pdf_class &&
125  self_loop_pdf_class == other.self_loop_pdf_class &&
126  transitions == other.transitions);
127  }
std::vector< std::pair< int32, BaseFloat > > transitions
A list of transitions, indexed by what we call a 'transition-index'.
Definition: hmm-topology.h:110
int32 forward_pdf_class
The Pdf-classes forward-pdf-class, typically 0, 1 or 2 (the same as the HMM-state index)...
Definition: hmm-topology.h:101
int32 self_loop_pdf_class
The Pdf-classes self-loop pdf-class, similar to Pdf-classes forward-pdf-class.
Definition: hmm-topology.h:105

Member Data Documentation

int32 forward_pdf_class

The Pdf-classes forward-pdf-class, typically 0, 1 or 2 (the same as the HMM-state index), but may be different to enable us to hardwire sharing of state, and may be equal to kNoPdf == -1 in order to specify nonemitting states (unusual).

Definition at line 101 of file hmm-topology.h.

Referenced by kaldi::GeneratePathThroughHmm(), HmmTopology::HmmState::HmmState(), and HmmTopology::HmmState::operator==().

int32 self_loop_pdf_class

The Pdf-classes self-loop pdf-class, similar to Pdf-classes forward-pdf-class.

They will either both be kNoPdf, or neither be kNoPdf.

Definition at line 105 of file hmm-topology.h.

Referenced by HmmTopology::HmmState::HmmState(), and HmmTopology::HmmState::operator==().

std::vector<std::pair<int32, BaseFloat> > transitions

A list of transitions, indexed by what we call a 'transition-index'.

The first member of each pair is the index of the next HmmState, and the second is the default transition probability (before training).

Definition at line 110 of file hmm-topology.h.

Referenced by TransitionModel::ComputeDerived(), kaldi::GeneratePathThroughHmm(), HmmTopology::MinLength(), and HmmTopology::HmmState::operator==().


The documentation for this struct was generated from the following file: