ze-filter
(ze-filter-0.8.0-develop-180218)
|
#include <ze-sys.h>
#include <libze.h>
#include <ze-msg-score.h>
#include <libml.h>
#include <ze-filter.h>
Go to the source code of this file.
Macros | |
#define | BFILTER_LOCK() MUTEX_LOCK(&(bfilter.mutex)) |
#define | BFILTER_UNLOCK() MUTEX_UNLOCK(&(bfilter.mutex)) |
#define | HW(x) ((x) * log((x)) + (1. - (x)) * log(1. - (x))) |
Functions | |
bfilter_T * | bfilter_ptr () |
bool | bfilter_init (char *dbname) |
bool | set_bfilter_logit (bool enable) |
uint32_t | set_bfilter_flags (uint32_t flags) |
bool | set_bfilter_ham_spam_ratio (double ratio) |
bool | set_bfilter_unknown_token_prob (double prob) |
bool | set_bfilter_nb_tokens (int nbt) |
bool | set_bfilter_max_sizes (size_t msg, size_t mime) |
bool | set_bfilter_db_crypt (int crypt) |
uint32_t | get_bfilter_flags () |
double | get_bfilter_ham_spam_ratio () |
double | get_bfilter_unknown_token_prob () |
int | get_bfilter_nb_tokens () |
size_t | get_bfilter_max_sizes () |
int | get_bfilter_db_crypt () |
bool | bfilter_db_reopen () |
bool | bfilter_close () |
bool | bfilter_ok () |
double | information_gain (double nms, double nmh, double nts, double nth) |
bool | smodel_db_check_token (char *key, sfilter_token_T *token) |
void | smodel_db_info (char *prefix, smodel_db_browse_F func, void *arg) |
#define HW | ( | x | ) | ((x) * log((x)) + (1. - (x)) * log(1. - (x))) |