Struct OnlineCmvnState stores the state of CMVN adaptation between utterances (but not the state of the computation within an utterance). More...
#include <online-feature.h>
Public Member Functions | |
OnlineCmvnState () | |
OnlineCmvnState (const Matrix< double > &global_stats) | |
OnlineCmvnState (const OnlineCmvnState &other) | |
void | Write (std::ostream &os, bool binary) const |
void | Read (std::istream &is, bool binary) |
Public Attributes | |
Matrix< double > | speaker_cmvn_stats |
Matrix< double > | global_cmvn_stats |
Matrix< double > | frozen_state |
Struct OnlineCmvnState stores the state of CMVN adaptation between utterances (but not the state of the computation within an utterance).
It stores the global CMVN stats and the stats of the current speaker (if we have seen previous utterances for this speaker), and possibly will have a member "frozen_state": if the user has called the function Freeze() of class OnlineCmvn, to fix the CMVN so we can estimate fMLLR on top of the fixed value of cmvn. If nonempty, "frozen_state" will reflect how we were normalizing the mean and (if applicable) variance at the time when that function was called.
Definition at line 266 of file online-feature.h.
|
inline |
Definition at line 281 of file online-feature.h.
|
inlineexplicit |
Definition at line 283 of file online-feature.h.
OnlineCmvnState | ( | const OnlineCmvnState & | other | ) |
Definition at line 211 of file online-feature.cc.
void Read | ( | std::istream & | is, |
bool | binary | ||
) |
Definition at line 227 of file online-feature.cc.
References kaldi::ExpectToken(), OnlineCmvnState::frozen_state, OnlineCmvnState::global_cmvn_stats, Matrix< Real >::Read(), and OnlineCmvnState::speaker_cmvn_stats.
Referenced by OnlineGmmAdaptationState::Read(), and OnlineIvectorExtractorAdaptationState::Read().
void Write | ( | std::ostream & | os, |
bool | binary | ||
) | const |
Definition at line 216 of file online-feature.cc.
References OnlineCmvnState::frozen_state, OnlineCmvnState::global_cmvn_stats, OnlineCmvnState::speaker_cmvn_stats, MatrixBase< Real >::Write(), and kaldi::WriteToken().
Referenced by OnlineGmmAdaptationState::Write(), and OnlineIvectorExtractorAdaptationState::Write().
Matrix<double> frozen_state |
Definition at line 279 of file online-feature.h.
Referenced by OnlineCmvn::GetState(), OnlineIvectorExtractorAdaptationState::LimitFrames(), OnlineCmvnState::Read(), OnlineCmvn::SetState(), and OnlineCmvnState::Write().
Matrix<double> global_cmvn_stats |
Definition at line 274 of file online-feature.h.
Referenced by OnlineCmvn::Freeze(), OnlineCmvn::GetFrame(), OnlineCmvnState::Read(), and OnlineCmvnState::Write().
Matrix<double> speaker_cmvn_stats |
Definition at line 269 of file online-feature.h.
Referenced by OnlineCmvn::Freeze(), OnlineCmvn::GetFrame(), OnlineCmvn::GetState(), OnlineIvectorExtractorAdaptationState::LimitFrames(), OnlineCmvnState::Read(), and OnlineCmvnState::Write().