next up previous contents
Next: Waveform allocation and input Up: Type definitions Previous: Waveform related types   Contents

Feature related types

Features, also called data whithin SPro, are stored in a structure defined as:


    typedef 		 struct { 

datakind_t kind; /* feature kind */
unsigned long dim; /* vector dimension */
unsigned long n; /* number of feature vectors */
unsigned long m; /* maximum number of vectors */
flag_t flag; /* qualifiers */
feature_t *s; /* array of features */
} data_t;
where feature_t is a float, flag_t is a bit field of type unsigned int and the feature kind is defined as an enum of OTHER,FBANK, FBCEPSTRA, LPCEPSTRA, LPCOEFF, PARCOR and LAR.

The library also defines a feature buffer similar to what is done for waveforms, the library defines a feature buffer as


    typedef 		 struct { 

unsigned long dim; /* vector dimension */
unsigned long n; /* number of feature vectors */
unsigned long m; /* maximum number of vectors */
feature_t *s; /* array of features */
} spfbuf_t;



Guillaume Gravier 2003-05-07