Fix warnings
[pspp-builds.git] / src / language / stats / ks-one-sample.h
1 /* PSPP - a program for statistical analysis.
2    Copyright (C) 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 !ks_one_sample_h
18 #define ks_one_sample_h 1
19
20 #include <stddef.h>
21 #include <stdbool.h>
22 #include "language/stats/npar.h"
23
24 enum dist
25   {
26     KS_NORMAL,
27     KS_UNIFORM,
28     KS_POISSON,
29     KS_EXPONENTIAL
30   };
31
32 struct ks_one_sample_test
33 {
34   struct one_sample_test parent;
35
36   double p[2];
37   enum dist dist;
38 };
39
40 struct casereader;
41 struct dataset;
42
43
44 void ks_one_sample_execute (const struct dataset *ds,
45                             struct casereader *input,
46                             enum mv_class exclude,
47                             const struct npar_test *test,
48                             bool, double);
49
50 #endif