All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
kaldi-math.cc File Reference
#include "base/kaldi-math.h"
#include <stdlib.h>
#include <string>
#include <mutex>
Include dependency graph for kaldi-math.cc:

Go to the source code of this file.

Namespaces

 kaldi
 Relabels neural network egs with the read pdf-id alignments.
 

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