diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-01-29 17:46:26 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-01-29 17:46:26 +0300 |
commit | 32a96e82d075bdba6e9e567080977a76830cbce2 (patch) | |
tree | 028ebfd9118e5c9d33c07593eef7ea4c8b37108e /src/filter.h | |
parent | 24e7403974f65b788ad81071d30c092adde97f4e (diff) | |
download | rspamd-32a96e82d075bdba6e9e567080977a76830cbce2.tar.gz rspamd-32a96e82d075bdba6e9e567080977a76830cbce2.zip |
* Do another rework of filters/metrics and statfiles processing
* Add 'probability' normalizing to winnow algorithm and calculate not pure weight but normalized probability
Diffstat (limited to 'src/filter.h')
-rw-r--r-- | src/filter.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/filter.h b/src/filter.h index dec13fd72..33c55b162 100644 --- a/src/filter.h +++ b/src/filter.h @@ -27,6 +27,7 @@ struct metric { char *func_name; metric_cons_func func; double required_score; + struct classifier *classifier; }; struct metric_result { @@ -37,7 +38,7 @@ struct metric_result { int process_filters (struct worker_task *task); void process_statfiles (struct worker_task *task); -void insert_result (struct worker_task *task, const char *metric_name, const char *symbol, u_char flag); +void insert_result (struct worker_task *task, const char *metric_name, const char *symbol, double flag); void make_composites (struct worker_task *task); double factor_consolidation_func (struct worker_task *task, const char *metric_name); |