root/vtcross/trunk/src/include/vtcross/cbr.h @ 161

Revision 161, 0.7 KB (checked in by bhilburn, 15 years ago)

.

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