logs3.h File Reference
s3 log table implementation. More...
#include <s3types.h>
#include <logmath.h>
Go to the source code of this file.
Detailed Description
s3 log table implementation.
In evaluating HMM models, probability values are often kept in log domain, to avoid overflow. Furthermore, to enable these logprob values to be held in int32 variables without significant loss of precision, a logbase of (1+epsilon), epsilon<<1, is used. This module maintains this logbase, and other functions to support it.
Define Documentation
Function Documentation
| S3DECODER_EXPORT int32 logs3 |
( |
logmath_t * |
logmath, |
|
|
float64 |
p |
|
) |
|
|
|
|
Given p, return logs3(p) - Parameters:
-
| p |
The first number in float |
|
| S3DECODER_EXPORT logmath_t* logs3_init |
( |
float64 |
base, |
|
|
int32 |
bReport, |
|
|
int32 |
bLogTable |
|
) |
|
|
|
|
Initialize module with a new base (> 1.0). Returns 0 if successful, -1 otherwise. - Parameters:
-
| base |
The log base of the module |
| bReport |
Whether progress should be reported |
| bLogTable |
Whether log table should be used or not |
|
| void logs3_report |
( |
logmath_t * |
logmath |
) |
|
|
|
|
Report the parameters for s3 log table |
Generated on Sat Apr 11 00:02:29 2009 by
1.3.9.1