math: Improve comments.
[pspp] / src / math / box-whisker.h
index bef091e83b448dafc5c601fab3d04eb0d60f19f6..2dd5b5c609da2b0857396235da676672d32e0ec0 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2008, 2009 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,16 +48,16 @@ struct box_whisker
 
   double step;
 
-  size_t casenumber_idx;
+  size_t id_idx;
   const struct variable *id_var;
 };
 
 struct box_whisker * box_whisker_create (const struct tukey_hinges *,
-                                        const struct variable *, size_t);
+                                         size_t id_idx, const struct variable *id_var);
 
 void box_whisker_whiskers (const struct box_whisker *bw, double whiskers[2]);
 
-void box_whisker_hinges (const struct box_whisker *bw, double hinges[2]);
+void box_whisker_hinges (const struct box_whisker *bw, double hinges[3]);
 
 const struct ll_list * box_whisker_outliers (const struct box_whisker *bw);