Main Page | Class List | Directories | File List | Class Members | File Members

classify.h File Reference

Frame-by-frame classifier written by Ziad. To be replaced by Yitao's version. More...

#include "s3types.h"
#include "cont_mgau.h"

Go to the source code of this file.

Classes

struct  class_t
 class to store the classifier parameters More...

Defines

#define NUMCLASSES   4
#define DIMENSIONS   13
#define MAXFRAMES   10000
#define CLASS_N   0
#define CLASS_O   1
#define CLASS_S   2
#define CLASS_SIL   3
#define PRIOR_N   0.1
#define PRIOR_O   0.4
#define PRIOR_S   0.1
#define PRIOR_SIL   0.4
#define VOTEWINDOWLEN   5
#define CLASSLATENCY   2
#define POSTPROCESS   1
#define SWAP_INT(x)
#define SWAP_FLOAT(x)   SWAP_INT((int *) x)

Functions

void majority_class (class_t *CLASSW, int *classcount, int frame_count)
class_tclassw_initialize (char *mdeffile, char *meanfile, char *varfile, float64 varfloor, char *mixwfile, float64 mixwfloor, int32 precomp, char *senmgau)
void classw_free (class_t *CLASSW)
int classify (float *frame, mgau_model_t *g, int32 priors[NUMCLASSES], s3cipid_t *map)
int postclassify (int *window, int windowlen, int *wincap, int myclass)
int vote (int *window, int windowlen)


Detailed Description

Frame-by-frame classifier written by Ziad. To be replaced by Yitao's version.


Define Documentation

#define CLASS_N   0
 

#define CLASS_O   1
 

#define CLASS_S   2
 

#define CLASS_SIL   3
 

#define CLASSLATENCY   2
 

#define DIMENSIONS   13
 

#define MAXFRAMES   10000
 

#define NUMCLASSES   4
 

#define POSTPROCESS   1
 

#define PRIOR_N   0.1
 

#define PRIOR_O   0.4
 

#define PRIOR_S   0.1
 

#define PRIOR_SIL   0.4
 

#define SWAP_FLOAT  )     SWAP_INT((int *) x)
 

Macro to byteswap a float variable. x = ptr to variable

#define SWAP_INT  ) 
 

Value:

*(x) = ((0x000000ff & (*(x))>>24) | \
                                (0x0000ff00 & (*(x))>>8) | \
                                (0x00ff0000 & (*(x))<<8) | \
                                (0xff000000 & (*(x))<<24))
Macro to byteswap an int variable. x = ptr to variable

#define VOTEWINDOWLEN   5
 


Function Documentation

int classify float *  frame,
mgau_model_t g,
int32  priors[NUMCLASSES],
s3cipid_t map
 

Parameters:
frame  the frame
g  multiple mixture models
priors  The prior of each classes
map  Map between ci phones and classes

void classw_free class_t CLASSW  ) 
 

class_t* classw_initialize char *  mdeffile,
char *  meanfile,
char *  varfile,
float64  varfloor,
char *  mixwfile,
float64  mixwfloor,
int32  precomp,
char *  senmgau
 

Parameters:
mdeffile  The model def file
meanfile  The mean file
varfile  The variance file
varfloor  variance floor
mixwfile  The mixture weight
mixwfloor  mixture weight floor
precomp  pre-computation of values, 0 not to pre-compute, 1 to precompute
senmgau  whether it is SCHMM, ".semi." or FCHMM ".cont."

void majority_class class_t CLASSW,
int *  classcount,
int  frame_count
 

int postclassify int *  window,
int  windowlen,
int *  wincap,
int  myclass
 

int vote int *  window,
int  windowlen
 

Parameters:
window  A window of input
windowlen  The window length


Generated on Sat Apr 11 00:02:29 2009 by  doxygen 1.3.9.1