root/vtcross/trunk/src/cbr.h @ 33

Revision 28, 0.7 KB (checked in by ahe, 16 years ago)

incorporate ezxml with cbr

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