1:
2: #ifndef _input_set_h_included_
3: #define _input_set_h_included_
4:
5: #include <stdio.h>
6:
7: struct input_set;
8: struct int_map;
9:
10: struct input_line {
11:
12: int weight;
13: int negative_weight;
14:
15: int nr_features;
16: int *features;
17:
18: struct input_line *next_line;
19: struct input_line *next_in_hash;
20: };
21:
22: struct input_set *input_set_create(void);
23: void input_set_set_features(struct input_set *is, int *features,
24: int nr, int strength);
25: struct input_set *input_set_filter(struct input_set *is,
26: double pos, double neg);
27: void input_set_output_feature_freq(FILE *fp, struct input_set *is);
28:
29: struct input_line *input_set_get_input_line(struct input_set *is);
30:
31:
32: struct int_map *int_map_new(void);
33: int int_map_peek(struct int_map *im, int idx);
34: void int_map_set(struct int_map *im, int idx, int val);
35: void int_map_flatten(struct int_map *im);
36:
37: #endif