src/libpocketsphinx/tmat.h File Reference

Transition matrix data structure. More...

#include <stdio.h>
#include <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:
tmat In: transition matrix
fp In: file pointer

Definition at line 128 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:
t In: transition matrix

Definition at line 325 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:
tmatfile In: input file
lmath In: log math parameters
tpfloor In: floor value for each non-zero transition probability
breport In: whether reporting the process of tmat_t

Definition at line 190 of file tmat.c.

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

void tmat_report ( tmat_t t  ) 

Report the detail of the transition matrix structure.

Parameters:
t In: transition matrix

Definition at line 312 of file tmat.c.

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


Generated on Wed Aug 26 11:25:47 2009 for PocketSphinx by  doxygen 1.5.8