ze-filter  (ze-filter-0.8.0-develop-180218)
zeKStats.h
Go to the documentation of this file.
1 /*
2  *
3  * ze-filter - Mail Server Filter for sendmail
4  *
5  * Copyright (c) 2001-2018 - Jose-Marcio Martins da Cruz
6  *
7  * Auteur : Jose Marcio Martins da Cruz
8  * jose.marcio.mc@gmail.org
9  *
10  * Historique :
11  * Creation : janvier 2002
12  *
13  * This program is free software, but with restricted license :
14  *
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19  *
20  * More details about ze-filter license can be found at ze-filter
21  * web site : http://foss.jose-marcio.org
22  */
23 
24 #ifndef __ZE_KSTATS__
25 
26 typedef struct kstats_T {
27  int n;
28  double st;
29  double st2;
30  double min;
31  double max;
32 } kstats_T;
33 
34 #define MAX_CLASS 8
35 
36 #define KSTATS_INITIALIZER {0, 0., 0., 0., 0.}
37 
38 double zeKMean(kstats_T *s);
39 double zeKStdDev(kstats_T *s);
40 double zeKMin(kstats_T *s);
41 double zeKMax(kstats_T *s);
42 long zeKCount(kstats_T *s);
43 
44 void zeKStatsReset(kstats_T *);
45 void zeKStatsUpdate(kstats_T *, double );
46 void kstats_print(kstats_T *);
47 void print_inference(kstats_T *, double , char *);
48 
49 #if 0
50 double FGauss(double x);
51 double erf(double x);
52 double erfc(double x);
53 
54 double FGaussI(double x);
55 double erfi(double x);
56 double erfci(double x);
57 
58 double confidence_interval(double p, double stddev, int n);
59 #endif
60 
61 #define __ZE_KSTATS__
62 
63 #endif
64 
65 
double max
Definition: zeKStats.h:31
double min
Definition: zeKStats.h:30
long zeKCount(kstats_T *s)
Definition: zeKStats.c:82
void zeKStatsReset(kstats_T *)
Definition: zeKStats.c:92
double st
Definition: zeKStats.h:28
double zeKMin(kstats_T *s)
Definition: zeKStats.c:62
double confidence_interval(double p, double stddev, int n)
Definition: zeKStats.c:365
void print_inference(kstats_T *, double, char *)
void kstats_print(kstats_T *)
void zeKStatsUpdate(kstats_T *, double)
Definition: zeKStats.c:101
double st2
Definition: zeKStats.h:29
struct kstats_T kstats_T
double erf(double x)
Definition: zeKStats.c:250
double FGauss(double x)
Definition: zeKStats.c:243
double erfci(double y)
Definition: zeKStats.c:355
double FGaussI(double y)
Definition: zeKStats.c:335
int n
Definition: zeKStats.h:27
double zeKMean(kstats_T *s)
Definition: zeKStats.c:43
double zeKMax(kstats_T *s)
Definition: zeKStats.c:72
double zeKStdDev(kstats_T *s)
Definition: zeKStats.c:53
double erfi(double y)
Definition: zeKStats.c:346
double erfc(double x)
Definition: zeKStats.c:258