logs3.h File Reference

s3 log table implementation. More...

#include <s3types.h>
#include <logmath.h>

Go to the source code of this file.

Defines

#define LOGS3_SUCCESS   1
#define LOGS3_FAILURE   0

Functions

S3DECODER_EXPORT logmath_t * logs3_init (float64 base, int32 bReport, int32 bLogTable)
S3DECODER_EXPORT int32 logs3 (logmath_t *logmath, float64 p)
void logs3_report (logmath_t *logmath)

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

#define LOGS3_FAILURE   0
#define LOGS3_SUCCESS   1

Function Documentation

S3DECODER_EXPORT int32 logs3 ( logmath_t *  logmath,
float64  p 
)

Given p, return logs3(p)

Parameters:
p The first number in float

Referenced by align_init(), and dict2pid_build().

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

Referenced by main().

void logs3_report ( logmath_t *  logmath  ) 

Report the parameters for s3 log table


Generated on 7 Mar 2010 by  doxygen 1.6.1