model-test-common.cc File Reference
#include <algorithm>
#include <vector>
#include "matrix/matrix-lib.h"
#include "gmm/model-test-common.h"
Include dependency graph for model-test-common.cc:

Go to the source code of this file.

Namespaces

 kaldi
 This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for mispronunciations detection tasks, the reference:
 
 kaldi::unittest
 

Functions

void RandPosdefSpMatrix (int32 dim, SpMatrix< BaseFloat > *matrix, TpMatrix< BaseFloat > *matrix_sqrt, BaseFloat *logdet)
 
void RandDiagGaussFeatures (int32 num_samples, const VectorBase< BaseFloat > &mean, const VectorBase< BaseFloat > &sqrt_var, MatrixBase< BaseFloat > *feats)
 
void RandFullGaussFeatures (int32 num_samples, const VectorBase< BaseFloat > &mean, const TpMatrix< BaseFloat > &sqrt_var, MatrixBase< BaseFloat > *feats)
 
void InitRandDiagGmm (int32 dim, int32 num_comp, DiagGmm *gmm)
 
void InitRandFullGmm (int32 dim, int32 num_comp, FullGmm *gmm)