PocketSphinx  0.6
src/libpocketsphinx/tmat.h File Reference

Transition matrix data structure. More...

#include <stdio.h>
#include <sphinxbase/logmath.h>

Go to the source code of this file.

Data Structures

struct  tmat_t
 Transition matrix data structure. More...

Functions

tmat_ttmat_init (char const *tmatfile, logmath_t *lmath, float64 tpfloor, int32 breport)
 Initialize transition matrix.
void tmat_dump (tmat_t *tmat, FILE *fp)
 Dumping the transition matrix for debugging.
void tmat_free (tmat_t *t)
 RAH, add code to remove memory allocated by tmat_init.
void tmat_report (tmat_t *t)
 Report the detail of the transition matrix structure.

Detailed Description

Transition matrix data structure.

Definition in file tmat.h.


Function Documentation

void tmat_dump ( tmat_t tmat,
FILE *  fp 
)

Dumping the transition matrix for debugging.

Parameters:
tmatIn: transition matrix
fpIn: file pointer

Definition at line 129 of file tmat.c.

References tmat_t::n_state, tmat_t::n_tmat, and tmat_t::tp.

void tmat_free ( tmat_t t)

RAH, add code to remove memory allocated by tmat_init.

Parameters:
tIn: transition matrix

Definition at line 332 of file tmat.c.

References tmat_t::tp.

tmat_t* tmat_init ( char const *  tmatfile,
logmath_t *  lmath,
float64  tpfloor,
int32  breport 
)

Initialize transition matrix.

Parameters:
tmatfileIn: input file
lmathIn: log math parameters
tpfloorIn: floor value for each non-zero transition probability
breportIn: whether reporting the process of tmat_t

Definition at line 191 of file tmat.c.

References tmat_t::n_state, tmat_t::n_tmat, SENSCR_SHIFT, and tmat_t::tp.

void tmat_report ( tmat_t t)

Report the detail of the transition matrix structure.

Parameters:
tIn: transition matrix

Definition at line 319 of file tmat.c.

References tmat_t::n_state, and tmat_t::n_tmat.