Features, also called data whithin SPro, are stored in a
structure defined as:
typedef struct {
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.
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;
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;