filt.h - bmf - bmf (Bayesian Mail Filter) 0.9.4 fork + patches | |
git clone git://git.codemadness.org/bmf | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
filt.h (729B) | |
--- | |
1 /* $Id: filt.h,v 1.1 2002/10/20 18:19:17 tommy Exp $ */ | |
2 | |
3 /* | |
4 * Copyright (c) 2002 Tom Marshall <[email protected]> | |
5 * | |
6 * This program is free software. It may be distributed under the terms | |
7 * in the file LICENSE, found in the top level of the distribution. | |
8 */ | |
9 | |
10 #ifndef _FILT_H | |
11 #define _FILT_H | |
12 | |
13 #include "lex.h" | |
14 #include "str.h" | |
15 #include "vec.h" | |
16 | |
17 typedef struct | |
18 { | |
19 str_t key; | |
20 double prob; | |
21 } discrim_t; | |
22 | |
23 typedef struct | |
24 { | |
25 double spamicity; | |
26 uint keepers; | |
27 discrim_t* extrema; | |
28 } stats_t; | |
29 | |
30 void statdump( stats_t* pstat, FILE *fp ); | |
31 void bayesfilt( dbt_t* pglist, dbt_t* pblist, vec_t* pmlist, stats_t* ps… | |
32 | |
33 bool_t bvec_loadmsg( vec_t* pthis, lex_t* plex, tok_t* ptok ); | |
34 | |
35 #endif /* ndef _FILT_H */ |