TransitionModel::Tuple Struct Reference
Collaboration diagram for TransitionModel::Tuple:

Public Member Functions

 Tuple ()
 
 Tuple (int32 phone, int32 hmm_state, int32 forward_pdf, int32 self_loop_pdf)
 
bool operator< (const Tuple &other) const
 
bool operator== (const Tuple &other) const
 

Public Attributes

int32 phone
 
int32 hmm_state
 
int32 forward_pdf
 
int32 self_loop_pdf
 

Detailed Description

Definition at line 271 of file transition-model.h.

Constructor & Destructor Documentation

◆ Tuple() [1/2]

Tuple ( )
inline

Definition at line 276 of file transition-model.h.

276 { }

◆ Tuple() [2/2]

Tuple ( int32  phone,
int32  hmm_state,
int32  forward_pdf,
int32  self_loop_pdf 
)
inline

Member Function Documentation

◆ operator<()

bool operator< ( const Tuple other) const
inline

Definition at line 279 of file transition-model.h.

References TransitionModel::Tuple::forward_pdf, TransitionModel::Tuple::hmm_state, TransitionModel::Tuple::phone, and TransitionModel::Tuple::self_loop_pdf.

279  {
280  if (phone < other.phone) return true;
281  else if (phone > other.phone) return false;
282  else if (hmm_state < other.hmm_state) return true;
283  else if (hmm_state > other.hmm_state) return false;
284  else if (forward_pdf < other.forward_pdf) return true;
285  else if (forward_pdf > other.forward_pdf) return false;
286  else return (self_loop_pdf < other.self_loop_pdf);
287  }

◆ operator==()

bool operator== ( const Tuple other) const
inline

Definition at line 288 of file transition-model.h.

References TransitionModel::Tuple::forward_pdf, TransitionModel::Tuple::hmm_state, TransitionModel::Tuple::phone, and TransitionModel::Tuple::self_loop_pdf.

288  {
289  return (phone == other.phone && hmm_state == other.hmm_state
290  && forward_pdf == other.forward_pdf && self_loop_pdf == other.self_loop_pdf);
291  }

Member Data Documentation

◆ forward_pdf

◆ hmm_state

◆ phone

◆ self_loop_pdf


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