root/vtcross/branches/trnewman/CR_engines/CBR/src/cbr.h @ 76

Revision 76, 0.7 KB (checked in by ahe, 15 years ago)

try to incorporate cbr but failed in compiling

Line 
1//
2// Case-based reasoner
3//
4
5#include "sqlite3.h"
6//#define CBR_LEN_FILENAME 64
7
8#define DATABASENAME "cactus_cbr"
9
10typedef struct cbr_s * cbr;
11
12// create the CBR
13cbr cbr_create(char * _filename, char * _tablename, char * _cols[], unsigned int _len);
14
15// free the CBR
16void cbr_free(cbr _cbr);
17
18// print databse/table
19void cbr_print(cbr _cbr);
20
21#define EQ 0    // equals
22#define NE 1    // not equals
23#define GT 2    // greater than
24#define GE 3    // greater than or equal to
25#define LT 4    // less than
26#define LE 5    // less than or equal to
27int cbr_search(cbr _cbr, char *_names[], int * _ops, float *_vals, unsigned int _n, float *_retvals);
28
29int cbr_add_row(cbr _cbr, char *_cols[], float *_vals, unsigned int _len);
30
Note: See TracBrowser for help on using the browser.