(Sphinx 3.X specific) Single Stream MLLR. More...
Go to the source code of this file.
Functions | |
void | mllr_dump (float32 ***A, float32 **B, int32 veclen, int32 nclass) |
int32 | mllr_read_regmat (const char *regmatfile, float32 ****A, float32 ***B, int32 *nclass, int32 ceplen) |
int32 | mllr_free_regmat (float32 ***A, float32 **B) |
int32 | mllr_norm_mgau (mgau_model_t *mgauset, float32 ***A, float32 **B, int32 nclass, int32 *cb2mllr) |
(Sphinx 3.X specific) Single Stream MLLR.
void mllr_dump | ( | float32 *** | A, |
float32 ** | B, | ||
int32 | veclen, | ||
int32 | nclass | ||
) |
Dump the regression matrix from a given file
A | In: [nclass][streamlen][streamlen] |
B | In: [nclass][streamlen] |
veclen | In: vector length |
nclass | In: Number of classes |
int32 mllr_free_regmat | ( | float32 *** | A, |
float32 ** | B | ||
) |
Free a regression matrix previously read in by mllr_read_regmat.
A | In: A[streamlen][streamlen] |
B | In: B[streamlen] |
int32 mllr_norm_mgau | ( | mgau_model_t * | mgauset, |
float32 *** | A, | ||
float32 ** | B, | ||
int32 | nclass, | ||
int32 * | cb2mllr | ||
) |
Transform a mixture density mean matrix according to the given regression matrix.
mgauset | In/Out: The gaussian distribution needs to be transformed |
A | In: "matrix" portion of regression matrix |
B | In: "vector" portion of regression matrix |
nclass | In: number of classes |
cb2mllr | In: class to senone mapping |
int32 mllr_read_regmat | ( | const char * | regmatfile, |
float32 **** | A, | ||
float32 *** | B, | ||
int32 * | nclass, | ||
int32 | ceplen | ||
) |
In: vector length
regmatfile | In: File to be read |
A | Out: [*A][nclass][streamlen][streamlen] |
B | Out: [*B][nclass][streamlen] |
nclass | Out: number of classes |