#include <gmm_util.H>
Public Member Functions | |
| GmmStats (GmmSet &gmmSet, const map< string, string > ¶ms=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. | |
This object stores and updates the statistics required for reestimating a set of GMM's. The method reestimate() reestimates the associated GmmSet.
| 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.
1.5.5