SPRAAK
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields
SprAcmod Struct Reference

opaque structure (will become a class) More...

+ Collaboration diagram for SprAcmod:

Data Fields

unsigned int flags
 set of flags (SPR_AM_CALC_... + SPR_AM_CVT_...) More...
 
int vlen
 number of parameters in the input vector More...
 
int Nstates
 
int Ngauss
 number of gaussians in the set More...
 
int TotMixdim
 total length of the mixture arrays More...
 
float log_sf
 
float asf
 
float H
 
float log_tot_lik
 the unconditional likelihood corresponding to oprob More...
 
float floor_frac
 floor value for state outputs More...
 
float * prior
 the state priors More...
 
float * lprior
 the log of the state priors More...
 
double Npoints
 total number of points More...
 
SprHmmTProbtprob
 transition probs of the HMM More...
 
float * oprob
 output probabilities of the states More...
 
SprHmmFGauss ** gaussians
 gaussians + state links More...
 
SprHmmUcharstate_sel
 mark the active states More...
 
SprHmmUchar4sel
 gaussians selected by FRoG More...
 
SprHmmUchar4orig_sel
 
SprHmmRmgInfofrog
 fast evaluation of gaussians More...
 
_FuncPtr2_HMMDEF_ calc_oprob
 
float *(* cvt_oprob )(SprAcmod *gset, float *restrict oprob)
 
_FuncPtr3_HMMDEF_ modify
 modify the status/configuration More...
 
int(* check_keys )(const SprAcmod *gset, const SprKeySet *keys)
 check if the observation is compliant with the acoustic model More...
 
_FuncPtr4_HMMDEF_ call_back
 
SprAcmod *(* free )(SprAcmod *gset)
 free all data More...
 

Detailed Description

opaque structure (will become a class)

Field Documentation

unsigned int SprAcmod::flags

set of flags (SPR_AM_CALC_... + SPR_AM_CVT_...)

int SprAcmod::vlen

number of parameters in the input vector

int SprAcmod::Nstates

number of states, only filled in a an HMM is attached to the mvg (also indicates whether the state info is available)

int SprAcmod::Ngauss

number of gaussians in the set

int SprAcmod::TotMixdim

total length of the mixture arrays

float SprAcmod::log_sf

LOG: multiply the log likelihoods/posteriors returned by calc_oprob() with log_sf obtain natural logs; LIN: raise the likelihoods/posteriors returned by calc_oprob() to the power log_sf to obtain linear values

float SprAcmod::asf

LOG: <cvt_optob>() returns natural log likelihoods/posteriors multiplied with asf; LIN: <cvt_optob>() returns likelihoods/posteriors raised to the power asf

float SprAcmod::H

the entropy (log(perplexity), not log2) of the posterior probs represented by oprob

float SprAcmod::log_tot_lik

the unconditional likelihood corresponding to oprob

float SprAcmod::floor_frac

floor value for state outputs

float* SprAcmod::prior

the state priors

float* SprAcmod::lprior

the log of the state priors

double SprAcmod::Npoints

total number of points

SprHmmTProb* SprAcmod::tprob

transition probs of the HMM

float* SprAcmod::oprob

output probabilities of the states

SprHmmFGauss** SprAcmod::gaussians

gaussians + state links

SprHmmUchar* SprAcmod::state_sel

mark the active states

SprHmmUchar4* SprAcmod::sel

gaussians selected by FRoG

SprHmmUchar4* SprAcmod::orig_sel

pre-selection of gaussians (lexicon/sentence based during recognition/alignment or state based during training)

SprHmmRmgInfo* SprAcmod::frog

fast evaluation of gaussians

_FuncPtr2_HMMDEF_ SprAcmod::calc_oprob

the main evaluation function: computes the (log) likelihood or the (log) posterior prob; the actual format of the output of this routine is described by the flags flags (and the scale factor log_sf)

float*(* SprAcmod::cvt_oprob)(SprAcmod *gset, float *restrict oprob)

convert to output of calc_oprob(); the default conversion creates scaled log likelihoods (scale factor asf) and computes the unconditional probability of the observation

_FuncPtr3_HMMDEF_ SprAcmod::modify

modify the status/configuration

int(* SprAcmod::check_keys)(const SprAcmod *gset, const SprKeySet *keys)

check if the observation is compliant with the acoustic model

_FuncPtr4_HMMDEF_ SprAcmod::call_back

the acoustic model requires a call-back from the search (feedback loop)

SprAcmod*(* SprAcmod::free)(SprAcmod *gset)

free all data