[cvs] SF.net SVN: bogofilter:[6771] trunk/bogofilter/src
Fast Bayesian spam filter along lines suggested by Paul Graham
Brought to you by:
m-a
From: <re...@us...> - 2009-02-01 01:29:50
|
Revision: 6771 http://bogofilter.svn.sourceforge.net/bogofilter/?rev=6771&view=rev Author: relson Date: 2009-02-01 01:29:47 +0000 (Sun, 01 Feb 2009) Log Message: ----------- Move score_t definition. Modified Paths: -------------- trunk/bogofilter/src/score.c trunk/bogofilter/src/score.h Modified: trunk/bogofilter/src/score.c =================================================================== --- trunk/bogofilter/src/score.c 2009-01-30 00:26:42 UTC (rev 6770) +++ trunk/bogofilter/src/score.c 2009-02-01 01:29:47 UTC (rev 6771) @@ -40,6 +40,19 @@ #include "gsl/gsl_cdf.h" #endif +/* Structure Definitions */ + +/* struct for saving stats for printing. */ +typedef struct score_s { + double min_dev; + double spamicity; + u_int32_t robn; + double p_ln; /* Robinson P, as a log*/ + double q_ln; /* Robinson Q, as a log*/ + double p_pr; /* Robinson P */ + double q_pr; /* Robinson Q */ +} score_t; + /* Function Prototypes */ static double get_spamicity(size_t robn, FLOAT P, FLOAT Q); Modified: trunk/bogofilter/src/score.h =================================================================== --- trunk/bogofilter/src/score.h 2009-01-30 00:26:42 UTC (rev 6770) +++ trunk/bogofilter/src/score.h 2009-02-01 01:29:47 UTC (rev 6771) @@ -9,19 +9,6 @@ #define MAX_REPEATS 1 /* cap on word frequency per message */ #define GOOD_BIAS 1.0 /* don't give good words more weight */ -/* -** Define a struct so stats can be saved for printing. -*/ - -typedef struct score_s { - double spamicity; - u_int32_t robn; - double p_ln; /* Robinson P, as a log*/ - double q_ln; /* Robinson Q, as a log*/ - double p_pr; /* Robinson P */ - double q_pr; /* Robinson Q */ -} score_t; - extern void lookup_words(wordhash_t *wh); extern void score_initialize(void); extern void score_cleanup(void); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |