-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgmm_parameters.h
79 lines (59 loc) · 1.79 KB
/
gmm_parameters.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef GMM_PARAMETERS_H
#define GMM_PARAMETERS_H
#include <stdlib.h>
#include <stdio.h>
#include "frontend_normalization_constants.h"
extern const int frNC;
extern const int enNC;
extern const char frweightFile[];
extern const char frmeanFile[];
extern const char frcovarFile[];
extern const char frlogdetFile[];
extern const char frlogweightFile[];
extern const char frmeanprecprodFile[];
extern const char frmeanprecprodsumFile[];
extern const char frprecFile[];
extern const char frsqrtprecFile[];
extern double *frGMMWeights;
extern double **frGMMMean;
extern double **frGMMCovar;
extern double *frLogDet;
extern double **frPrec;
extern double **frSqrtPrec;
extern double *frLogWeight;
extern double *frMeanPrecProdSum;
extern double **frMeanPrecProd;
extern const char enweightFile[];
extern const char enmeanFile[];
extern const char encovarFile[];
extern const char enlogdetFile[];
extern const char enlogweightFile[];
extern const char enmeanprecprodFile[];
extern const char enmeanprecprodsumFile[];
extern const char enprecFile[];
extern const char ensqrtprecFile[];
extern double *enGMMWeights;
extern double **enGMMMean;
extern double **enGMMCovar;
extern double *enLogDet;
extern double **enPrec;
extern double **enSqrtPrec;
extern double *enLogWeight;
extern double *enMeanPrecProdSum;
extern double **enMeanPrecProd;
extern const int frTVCol;
extern const int enTVCol;
extern const char frTVMatFile[];
extern const char enTVMatFile[];
extern double **frTVMat;
extern double **enTVMat;
//to load and clear the memory blocks to do some computation
void initEnglishGmmParameters();
void initFrenchGmmParameters();
void clearEnglishGmmParameters();
void clearFrenchGmmParameters();
void initEnglishTVmatrix();
void initFrenchTVmatrix();
void clearEnglishTVmatrix();
void clearFrenchTVmatrix();
#endif