include/gau_cb_int32.h File Reference

#include <sphinx_config.h>
#include <cmd_ln.h>
#include <gau_cb.h>
#include <fixpoint.h>
#include <logmath.h>
#include <fe.h>

Go to the source code of this file.

Data Structures

struct  gau_den_int32_s

Typedefs

typedef struct gau_den_int32_s gau_den_int32_t
 Type representing a single density for computation.
typedef float32 int32_mean_t
 Type of precomputed means for gau_cb_int32.
typedef float32 int32_var_t
 Type of precomputed invvars for gau_cb_int32.
typedef float32 int32_norm_t
 Type of precomputed norms for gau_cb_int32.

Functions

gau_cb_tgau_cb_int32_read (cmd_ln_t *config, const char *meanfn, const char *varfn, const char *normfn, logmath_t *lmath)
 Read a codebook of Gaussians from mean and variance files and precompute for logarithmic int32 computation.
void gau_cb_int32_free (gau_cb_t *gau)
 Free a codebook loaded with gau_cb_int32_read().
int gau_cb_int32_compute_all (gau_cb_t *gau, int mgau, int feat, mfcc_t *obs, int32 *out_den, int worst)
 Compute all floating point densities for a single feature stream in an observation.
int gau_cb_int32_compute (gau_cb_t *gau, int mgau, int feat, mfcc_t *obs, gau_den_int32_t *inout_den, int nden)
 Compute a subset of floating point densities for a single feature stream in an observation.
int32_mean_t **** gau_cb_int32_get_means (gau_cb_t *gau)
 Retrieve the mean vectors from the codebook.
int32_var_t **** gau_cb_int32_get_invvars (gau_cb_t *gau)
 Retrieve the scaled inverse variance vectors from the codebook.
int32_norm_t *** gau_cb_int32_get_norms (gau_cb_t *gau)
 Retrieve the log normalization constants from the codebook.


Detailed Description

Author:
David Huggins-Daines <dhuggins@cs.cmu.edu>
Gaussian distribution parameters (log integer computation)

Definition in file gau_cb_int32.h.


Typedef Documentation

typedef float32 int32_mean_t

Type of precomputed means for gau_cb_int32.

Definition at line 114 of file gau_cb_int32.h.

typedef float32 int32_norm_t

Type of precomputed norms for gau_cb_int32.

Definition at line 116 of file gau_cb_int32.h.

typedef float32 int32_var_t

Type of precomputed invvars for gau_cb_int32.

Definition at line 115 of file gau_cb_int32.h.


Function Documentation

int gau_cb_int32_compute ( gau_cb_t gau,
int  mgau,
int  feat,
mfcc_t *  obs,
gau_den_int32_t inout_den,
int  nden 
)

Compute a subset of floating point densities for a single feature stream in an observation.

Returns:
the offset in inout_den of the lowest density

int gau_cb_int32_compute_all ( gau_cb_t gau,
int  mgau,
int  feat,
mfcc_t *  obs,
int32 *  out_den,
int  worst 
)

Compute all floating point densities for a single feature stream in an observation.

Returns:
the index of the highest density

gau_cb_t* gau_cb_int32_read ( cmd_ln_t config,
const char *  meanfn,
const char *  varfn,
const char *  normfn,
logmath_t lmath 
)

Read a codebook of Gaussians from mean and variance files and precompute for logarithmic int32 computation.

Parameters:
config  Configuration parameters
meanfn  Filename for means
varfn  Filename for variances
normfn  (optional) Filename for normalization constants
lmath  Log-math table (for logbase, etc)


Generated on Mon Jul 7 22:32:38 2008 for SphinxBase by  doxygen 1.5.5