X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Flevene.h;h=4351ee092a127db7c1e9a82d562dc94eec1c6e1c;hb=refs%2Fbuilds%2F20131224033012%2Fpspp;hp=70e04c34158bc8d33a8dc1e3b925715d1478a5dc;hpb=f5c108becd49d78f4898cab11352291f5689d24e;p=pspp
diff --git a/src/math/levene.h b/src/math/levene.h
index 70e04c3415..4351ee092a 100644
--- a/src/math/levene.h
+++ b/src/math/levene.h
@@ -1,49 +1,34 @@
-/* This file is part of GNU PSPP
- Computes Levene test statistic.
+/* PSPP - a program for statistical analysis.
+ Copyright (C) 2004, 2011 Free Software Foundation, Inc.
- Copyright (C) 2004 Free Software Foundation, Inc.
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License as
- published by the Free Software Foundation; either version 2 of the
- License, or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- 02110-1301, USA. */
+ along with this program. If not, see . */
#if !levene_h
#define levene_h 1
-#include
-#include
-#include
-
-/* Calculate the Levene statistic
-
-The independent variable : v_indep;
-
-Number of dependent variables : n_dep;
-
-The dependent variables : v_dep;
-
-*/
+struct nl;
+union value;
-struct dictionary ;
-struct casefilter ;
+struct levene *levene_create (int indep_width, const union value *cutpoint);
-void levene(const struct dictionary *dict, struct casereader *,
- const struct variable *v_indep, size_t n_dep,
- const struct variable **v_dep,
- enum mv_class exclude);
+void levene_pass_one (struct levene *, double value, double weight, const union value *gv);
+void levene_pass_two (struct levene *, double value, double weight, const union value *gv);
+void levene_pass_three (struct levene *, double value, double weight, const union value *gv);
+double levene_calculate (struct levene*);
+void levene_destroy (struct levene*);
-#endif /* levene_h */
+#endif