EXAMINE: Allow the /ID subcommand to take a non-numeric variable
[pspp] / src / math / box-whisker.h
index 5202b646727b184ccc22b3ffcfd7e14f3c32c8fd..ccafef1fc9069a509c064f813374356339a6775a 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008, 2009, 2011 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
 #define __MATH_BOX_WHISKER_H__
 
 #include <stddef.h>
-#include <libpspp/ll.h>
-#include <libpspp/str.h>
-#include "order-stats.h"
+#include "libpspp/ll.h"
+#include "libpspp/str.h"
+#include "math/order-stats.h"
 
 /* This module calculates the statistics typically displayed by box-plots.
    However, there's no reason not to use it for other purposes too.
  */
 struct tukey_hinges;
-
+struct variable;
 
 struct outlier
 {
@@ -48,12 +48,12 @@ struct box_whisker
 
   double step;
 
-  size_t casenumber_idx;
+  size_t id_idx;
   const struct variable *id_var;
 };
 
-struct statistic * box_whisker_create (const struct tukey_hinges *,
-                                        const struct variable *, size_t);
+struct box_whisker * box_whisker_create (const struct tukey_hinges *,
+                                         size_t id_idx, const struct variable *id_var);
 
 void box_whisker_whiskers (const struct box_whisker *bw, double whiskers[2]);