X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fbox-whisker.h;h=2dd5b5c609da2b0857396235da676672d32e0ec0;hb=affc364e2d29fad9f18acba43ca81ce7ec0589aa;hp=5202b646727b184ccc22b3ffcfd7e14f3c32c8fd;hpb=7fbfc32fc3c636959b0a25b3e76609f86519e84a;p=pspp diff --git a/src/math/box-whisker.h b/src/math/box-whisker.h index 5202b64672..2dd5b5c609 100644 --- a/src/math/box-whisker.h +++ b/src/math/box-whisker.h @@ -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 @@ -18,15 +18,15 @@ #define __MATH_BOX_WHISKER_H__ #include -#include -#include -#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 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]); -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);