#include "base/kaldi-math.h"#include <stdlib.h>#include <unistd.h>#include <string>#include <mutex>
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:  | |
Functions | |
| int32 | RoundUpToNearestPowerOfTwo (int32 n) | 
| int | Rand (struct RandomState *state) | 
| bool | WithProb (BaseFloat prob, struct RandomState *state) | 
| int32 | RandInt (int32 min_val, int32 max_val, struct RandomState *state) | 
| int32 | RandPoisson (float lambda, struct RandomState *state) | 
| void | RandGauss2 (float *a, float *b, RandomState *state) | 
| void | RandGauss2 (double *a, double *b, RandomState *state) | 
Variables | |
| static std::mutex | _RandMutex |