tmat.h File Reference
Transition matrix data structure.
More...
#include <stdio.h>
#include <s3types.h>
#include <logmath.h>
Go to the source code of this file.
Detailed Description
Transition matrix data structure.
Function Documentation
int32 tmat_chk_1skip |
( |
tmat_t * |
tmat |
) |
|
Checks that transition matrix arcs in the given object skip over at most 1 state.
- Returns:
- 0 if successful, -1 if check failed.
- Parameters:
-
| tmat | In: transition matrix |
int32 tmat_chk_uppertri |
( |
tmat_t * |
tmat |
) |
|
Checks that no transition matrix in the given object contains backward arcs.
- Returns:
- 0 if successful, -1 if check failed.
- Parameters:
-
| tmat | In: transition matrix |
void tmat_dump |
( |
tmat_t * |
tmat, |
|
|
FILE * |
fp | |
|
) |
| | |
Dumping the transition matrix for debugging
- Parameters:
-
| tmat | In: transition matrix |
| fp | In: file pointer |
RAH, add code to remove memory allocated by tmat_init
- Parameters:
-
tmat_t* tmat_init |
( |
const char * |
tmatfile, |
|
|
float64 |
tpfloor, |
|
|
int32 |
breport, |
|
|
logmath_t * |
logmath | |
|
) |
| | |
Initialize transition matrix
- Parameters:
-
| 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.
- Parameters:
-