ComparePosteriorByPdfs Struct Reference
Collaboration diagram for ComparePosteriorByPdfs:

Public Member Functions

 ComparePosteriorByPdfs (const TransitionModel &tmodel)
 
bool operator() (const std::pair< int32, BaseFloat > &a, const std::pair< int32, BaseFloat > &b)
 

Public Attributes

const TransitionModeltmodel_
 

Detailed Description

Definition at line 301 of file posterior.cc.

Constructor & Destructor Documentation

◆ ComparePosteriorByPdfs()

ComparePosteriorByPdfs ( const TransitionModel tmodel)
inline

Definition at line 303 of file posterior.cc.

303 : tmodel_(&tmodel) {}
const TransitionModel * tmodel_
Definition: posterior.cc:302

Member Function Documentation

◆ operator()()

bool operator() ( const std::pair< int32, BaseFloat > &  a,
const std::pair< int32, BaseFloat > &  b 
)
inline

Definition at line 304 of file posterior.cc.

References TransitionModel::TransitionIdToPdf().

305  {
306  if (tmodel_->TransitionIdToPdf(a.first)
307  < tmodel_->TransitionIdToPdf(b.first))
308  return true;
309  else
310  return false;
311  }
const TransitionModel * tmodel_
Definition: posterior.cc:302
int32 TransitionIdToPdf(int32 trans_id) const

Member Data Documentation

◆ tmodel_

const TransitionModel* tmodel_

Definition at line 302 of file posterior.cc.


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