183332f85cec4f7bf7754c033a62e31b9a05066b
[pspp-builds.git] / src / language / stats / binomial.h
1 /* PSPP - computes sample statistics.
2    Copyright (C) 2006 Free Software Foundation, Inc.
3
4    This program is free software; you can redistribute it and/or
5    modify it under the terms of the GNU General Public License as
6    published by the Free Software Foundation; either version 2 of the
7    License, or (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful, but
10    WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12    General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program; if not, write to the Free Software
16    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17    02110-1301, USA. */
18
19 #if !binomial_h
20 #define binomial_h 1
21
22 #include <config.h>
23 #include <stddef.h>
24 #include <stdbool.h>
25
26 #include "npar.h"
27
28
29 struct binomial_test
30 {
31   struct one_sample_test parent;
32   double p;
33   double category1;
34   double category2;
35   double cutpoint;
36 };
37
38
39 struct casereader;
40 struct dataset;
41
42
43 void binomial_execute (const struct dataset *,
44                        struct casereader *,
45                        enum mv_class,
46                        const struct npar_test *);
47
48 #endif