Skip to content
Snippets Groups Projects
Select Git revision
  • 798a9f2e78b8065600a227ee517656955bb66449
  • master default protected
  • loss
  • producer
4 results

Decoder.hpp

Blame
  • feat_model.h 866 B
    #ifndef __FEAT_MODEL__
    #define __FEAT_MODEL__
    
    #include "feat_desc.h"
    #include "feat_lib.h"
    
    typedef struct {
      char string[2048];
      char *name;
      int nbelem;
      feat_desc **array;
      int dim;
      feat_lib *fl; // stores all simple features 
    } feat_model;
    
    #include "config.h"
    #include "dico.h"
    #include "mcd.h"
    
    
    
    void feat_model_free(feat_model *fm);
    feat_model *feat_model_new(char *name);
    void feat_model_print(FILE *f, feat_model *fm);
    feat_desc *feat_model_add(feat_model *fm, feat_desc *fd);
    int feat_model_get_feat_value_fann(feat_model *fm, config *c, int feat_nb);
    int feat_model_get_feat_value_cff(feat_model *fm, config *c, dico *dico_features, int feat_nb, int mode);
    feat_model *feat_model_read(char *filename, int verbose);
    void feat_model_compute_ranges(feat_model *fm, mcd *m, int mvt_nb);
    int feat_model_get_type_feat_n(feat_model *fm, int n);
    
    #endif