~ubuntu-branches/ubuntu/lucid/bogofilter/lucid-updates

« back to all changes in this revision

Viewing changes to src/score.h

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-05-06 05:41:52 UTC
  • mfrom: (1.1.11 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090506054152-tgameecssbuv4np6
Tags: 1.2.0-2ubuntu1
* Merge from debian unstable, remaining changes: LP: #372497
  - don't build qdbm.
  - Don't build tokyocabinet support as it's in universe.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: score.h 6435 2006-01-30 22:35:55Z relson $ */
 
1
/* $Id: score.h 6777 2009-02-01 03:49:48Z relson $ */
2
2
/*  constants and declarations for robinson-fisher method */
3
3
 
4
4
#ifndef FISHER_H
9
9
#define MAX_REPEATS     1       /* cap on word frequency per message */
10
10
#define GOOD_BIAS       1.0     /* don't give good words more weight */
11
11
 
12
 
/*
13
 
** Define a struct so stats can be saved for printing.
14
 
*/
15
 
 
16
 
typedef struct score_s {
17
 
    double spamicity;
18
 
    u_int32_t robn;
19
 
    double p_ln;        /* Robinson P, as a log*/
20
 
    double q_ln;        /* Robinson Q, as a log*/
21
 
    double p_pr;        /* Robinson P */
22
 
    double q_pr;        /* Robinson Q */
23
 
} score_t;
24
 
 
25
12
extern  void    lookup_words(wordhash_t *wh);
26
13
extern  void    score_initialize(void);
27
14
extern  void    score_cleanup(void);
28
15
 
29
 
extern  double  msg_compute_spamicity(wordhash_t *wordhash, FILE *fp) /*@globals errno@*/;
 
16
extern  double  msg_compute_spamicity(wordhash_t *wordhash) /*@globals errno@*/;
30
17
extern  double  msg_spamicity(void);
31
18
extern  rc_t    msg_status(void);
32
19
extern  void    msg_print_stats(FILE *fp);
33
20
extern  void    msg_print_summary(const char *pfx);
34
21
 
35
 
extern   void   print_summary(void);
 
22
extern  void    print_summary(void);
36
23
 
37
24
#endif