X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ffactor_stats.h;h=259694e8fc5aafd2d982404b57f958a1f2e86d6e;hb=05e356b2a3087e819ef3b5388e29c822f41502e1;hp=f6394a8a95aa1a8358b90e1812edb32d521bfc12;hpb=4239c455e7b1061b7c960b793f9080e113123845;p=pspp diff --git a/src/factor_stats.h b/src/factor_stats.h index f6394a8a95..259694e8fc 100644 --- a/src/factor_stats.h +++ b/src/factor_stats.h @@ -27,6 +27,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA #include "hash.h" #include "val.h" +#include #include #include "subclist.h" #include "percentiles.h" @@ -80,12 +81,12 @@ struct metrics enum pc_alg ptile_alg; /* Tukey's Hinges */ - double hinges[3]; + double hinge[3]; }; - +struct metrics * metrics_create(void); void metrics_precalc(struct metrics *m); @@ -94,6 +95,9 @@ void metrics_calc(struct metrics *m, const union value *f, double weight, void metrics_postcalc(struct metrics *m); +void metrics_destroy(struct metrics *m); + + /* Linked list of case nos */ struct case_node @@ -135,6 +139,8 @@ struct factor_statistics { /* The an array stats for this factor, one for each dependent var */ struct metrics *m; + /* The number of dependent variables */ + int n_var; };