Transition matrix data structure. More...
Go to the source code of this file.
Classes | |
struct | tmat_t |
Transition matrix data structure. All phone HMMs are assumed to have the same topology. More... | |
Functions | |
tmat_t * | tmat_init (const char *tmatfile, float64 tpfloor, int32 breport, logmath_t *logmath) |
void | tmat_dump (tmat_t *tmat, FILE *fp) |
int32 | tmat_chk_uppertri (tmat_t *tmat) |
int32 | tmat_chk_1skip (tmat_t *tmat) |
void | tmat_free (tmat_t *t) |
void | tmat_report (tmat_t *t) |
Transition matrix data structure.
int32 tmat_chk_1skip | ( | tmat_t * | tmat | ) |
Checks that transition matrix arcs in the given object skip over at most 1 state.
tmat | In: transition matrix |
int32 tmat_chk_uppertri | ( | tmat_t * | tmat | ) |
Checks that no transition matrix in the given object contains backward arcs.
tmat | In: transition matrix |
void tmat_dump | ( | tmat_t * | tmat, |
FILE * | fp | ||
) |
Dumping the transition matrix for debugging
tmat | In: transition matrix |
fp | In: file pointer |
void tmat_free | ( | tmat_t * | t | ) |
RAH, add code to remove memory allocated by tmat_init
t | In: transition matrix |
tmat_t* tmat_init | ( | const char * | tmatfile, |
float64 | tpfloor, | ||
int32 | breport, | ||
logmath_t * | logmath | ||
) |
Initialize transition matrix
tmatfile | In: input file |
tpfloor | In: floor value for each non-zero transition probability |
breport | In: whether reporting the process of tmat_t |
void tmat_report | ( | tmat_t * | t | ) |
Report the detail of the transition matrix structure.
t | In: transition matrix |