Initial implementation of the Kruskal-Wallis test.
[pspp-builds.git] / src / language / stats / npar.h
index 37939fe9172b496eaeca10210c7c94fb85969c37..1c2605feeb6ee564040df788fdcb86b809f68aa6 100644 (file)
 #define npar_h 1
 
 #include <stddef.h>
+#include <stdbool.h>
 #include <data/missing-values.h>
-
-#include <stddef.h>
-#include <data/missing-values.h>
+#include <data/value.h>
 
 typedef const struct variable *variable_pair[2];
 
@@ -36,13 +35,15 @@ struct npar_test
   void (*execute) (const struct dataset *,
                   struct casereader *,
                    enum mv_class exclude,
-                  const struct npar_test *
-                  );
+                  const struct npar_test *,
+                  bool,
+                  double);
 
   void (*insert_variables) (const struct npar_test *,
                            struct const_hsh_table *);
 };
 
+
 struct one_sample_test
 {
   struct npar_test parent;
@@ -58,4 +59,14 @@ struct two_sample_test
 };
 
 
+struct n_sample_test
+{
+  struct npar_test parent;
+  const struct variable **vars;
+  size_t n_vars;
+
+  union value val1, val2;
+  const struct variable *indep_var;
+};
+
 #endif