GmmStats Class Reference

GMM statistics for reestimating a GmmSet. More...

#include <gmm_util.H>

List of all members.

Public Member Functions

 GmmStats (GmmSet &gmmSet, const map< string, string > &params=ParamsType())
 Ctor; gmmSet is the object to reestimate and params holds parameters controlling how reestimation is done.
void clear ()
 Resets all counts to 0.
double add_gmm_count (unsigned gmmIdx, double posterior, const vector< double > &feats)
 Updates stats for the gmmIdx-th GMM.
double update (const vector< GmmCount > &gmmCountList, const matrix< double > &feats)
 Update stats for all GMM counts in gmmCountList given that feats holds the feature vectors for the whole utterance.
void reestimate () const
 Reestimates GmmSet provided in ctor using current stats.


Detailed Description

GMM statistics for reestimating a GmmSet.

This object stores and updates the statistics required for reestimating a set of GMM's. The method reestimate() reestimates the associated GmmSet.


Member Function Documentation

void GmmStats::clear (  ) 

Resets all counts to 0.

double GmmStats::add_gmm_count ( unsigned  gmmIdx,
double  posterior,
const vector< double > &  feats 
)

Updates stats for the gmmIdx-th GMM.

The value posterior should be the posterior prob/count of this GMM, and feats should be the acoustic feature vector for the current frame. Returns log prob base e of GMM for that feature vector. GMM's are numbered starting from 0.

double GmmStats::update ( const vector< GmmCount > &  gmmCountList,
const matrix< double > &  feats 
)

Update stats for all GMM counts in gmmCountList given that feats holds the feature vectors for the whole utterance.

Returns the sum of the log probs base e of each GMM in the list for its corresponding frame; this value will only be meaningful in a Viterbi-style update.

void GmmStats::reestimate (  )  const

Reestimates GmmSet provided in ctor using current stats.


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

Generated on Thu Nov 5 09:26:36 2009 for asr_lib by  doxygen 1.5.5