Update all #include directives to the currently preferred style.
[pspp-builds.git] / src / language / stats / wilcoxon.h
1 /* PSPP - a program for statistical analysis.
2    Copyright (C) 2008, 2011 Free Software Foundation, Inc.
3
4    This program is free software: you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation, either version 3 of the License, or
7    (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU 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, see <http://www.gnu.org/licenses/>. */
16
17 #if !wilcoxon_h
18 #define wilcoxon_h 1
19
20 #include <stddef.h>
21 #include <stdbool.h>
22
23 #include "data/case.h"
24 #include "language/stats/npar.h"
25
26 struct rank_sum
27 {
28   double n;
29   double sum;
30 };
31
32 struct wilcoxon_state
33 {
34   struct casereader *reader;
35   struct variable *sign;
36   struct variable *absdiff;
37
38   struct rank_sum positives;
39   struct rank_sum negatives;
40   double n_zeros;
41
42   double tiebreaker;
43 };
44
45
46 struct wilcoxon_test
47 {
48   struct two_sample_test parent;
49 };
50
51 struct casereader;
52 struct dataset;
53
54
55 void wilcoxon_execute (const struct dataset *ds,
56                        struct casereader *input,
57                        enum mv_class exclude,
58                        const struct npar_test *test,
59                        bool exact,
60                        double timer
61                        );
62
63
64
65 #endif