0c317bb01576ab0ec662609f533e7e6e82c33e30
[pspp-builds.git] / src / language / stats / npar-summary.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 !n_par_summary_h
20 #define n_par_summary_h 1
21
22 #include <config.h>
23
24 struct variable ;
25 struct casereader ;
26 struct dictionary;
27
28 struct descriptives
29 {
30   double n;
31   double mean;
32   double std_dev;
33   double min;
34   double max;
35 };
36
37 void npar_summary_calc_descriptives (struct descriptives *desc,
38                                      struct casereader *input,
39                                      const struct dictionary *dict,
40                                      const struct variable *const *vv,
41                                      int n_vars,
42                                      enum mv_class filter);
43
44
45 void do_summary_box (const struct descriptives *desc,
46                      const struct variable *const *vv,
47                      int n_vars);
48
49
50
51 #endif