CountStats Struct Reference
Collaboration diagram for CountStats:

Public Member Functions

 CountStats (int32 p, int32 n, BaseFloat occ)
 
bool operator< (const CountStats &other) const
 

Public Attributes

int32 pdf_index
 
int32 num_components
 
BaseFloat occupancy
 

Detailed Description

Definition at line 103 of file model-common.cc.

Constructor & Destructor Documentation

◆ CountStats()

CountStats ( int32  p,
int32  n,
BaseFloat  occ 
)
inline

Definition at line 104 of file model-common.cc.

Referenced by kaldi::GetSplitTargets().

105  : pdf_index(p), num_components(n), occupancy(occ) {}
struct rnnlm::@11::@12 n

Member Function Documentation

◆ operator<()

bool operator< ( const CountStats other) const
inline

Definition at line 109 of file model-common.cc.

References CountStats::num_components, and CountStats::occupancy.

109  {
110  return occupancy/(num_components+1.0e-10) <
111  other.occupancy/(other.num_components+1.0e-10);
112  }

Member Data Documentation

◆ num_components

int32 num_components

Definition at line 107 of file model-common.cc.

Referenced by kaldi::GetSplitTargets(), and CountStats::operator<().

◆ occupancy

BaseFloat occupancy

Definition at line 108 of file model-common.cc.

Referenced by kaldi::GetSplitTargets(), and CountStats::operator<().

◆ pdf_index

int32 pdf_index

Definition at line 106 of file model-common.cc.

Referenced by kaldi::GetSplitTargets().


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