1a5125b671ae56b34c0d376ebc3c1dc64c98b3c7
[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 casefile ;
26 struct dictionary;
27 struct casefilter;
28
29 struct descriptives
30 {
31   double n;
32   double mean;
33   double std_dev;
34   double min;
35   double max;
36 };
37
38 void npar_summary_calc_descriptives (struct descriptives *desc,
39                                      const struct casefile *cf,
40                                      struct casefilter *filter,
41                                      const struct dictionary *dict,
42                                      const struct variable *const *vv, 
43                                      int n_vars);
44
45
46 void do_summary_box (const struct descriptives *desc, 
47                      const struct variable *const *vv,
48                      int n_vars);
49
50
51
52 #endif