Go to the source code of this file.
Functions | |
void | TestAmDiagGmmIO (const AmDiagGmm &am_gmm) |
void | TestSplitStates (const AmDiagGmm &am_gmm) |
void | TestClustering (const AmDiagGmm &am_gmm) |
void | UnitTestAmDiagGmm () |
int | main () |
int main | ( | ) |
void TestAmDiagGmmIO | ( | const AmDiagGmm & | am_gmm | ) |
Definition at line 32 of file am-diag-gmm-test.cc.
References kaldi::AssertEqual(), rnnlm::d, AmDiagGmm::Dim(), rnnlm::i, AmDiagGmm::LogLikelihood(), AmDiagGmm::NumPdfs(), kaldi::RandGauss(), AmDiagGmm::Read(), Input::Stream(), and AmDiagGmm::Write().
Referenced by UnitTestAmDiagGmm().
void TestClustering | ( | const AmDiagGmm & | am_gmm | ) |
Definition at line 95 of file am-diag-gmm-test.cc.
References kaldi::ClusterGaussiansToUbm(), rnnlm::i, AmDiagGmm::NumGauss(), AmDiagGmm::NumPdfs(), kaldi::RandGauss(), and kaldi::RandUniform().
Referenced by UnitTestAmDiagGmm().
void TestSplitStates | ( | const AmDiagGmm & | am_gmm | ) |
Definition at line 74 of file am-diag-gmm-test.cc.
References kaldi::AssertEqual(), AmDiagGmm::CopyFromAmDiagGmm(), rnnlm::d, AmDiagGmm::Dim(), rnnlm::i, AmDiagGmm::LogLikelihood(), AmDiagGmm::NumGauss(), AmDiagGmm::NumPdfs(), kaldi::RandGauss(), kaldi::RandUniform(), and AmDiagGmm::SplitByCount().
Referenced by UnitTestAmDiagGmm().
void UnitTestAmDiagGmm | ( | ) |
Definition at line 107 of file am-diag-gmm-test.cc.
References AmDiagGmm::AddPdf(), rnnlm::i, kaldi::unittest::InitRandDiagGmm(), kaldi::RandInt(), TestAmDiagGmmIO(), TestClustering(), and TestSplitStates().
Referenced by main().