X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ffactor_stats.h;h=c193f883e47384008781b39bd41333f0969990c5;hb=f62199cac6213ed1c03ffe48450a583da0fadc68;hp=cf660c6a1b25ec7634113ddd0e3c0fc91c0b8711;hpb=cd7b08ad5e6bbec75e778acf008f84e1eb548154;p=pspp-builds.git diff --git a/src/factor_stats.h b/src/factor_stats.h index cf660c6a..c193f883 100644 --- a/src/factor_stats.h +++ b/src/factor_stats.h @@ -52,11 +52,18 @@ struct metrics double trimmed_mean; - /* A hash of data for this factor */ + /* A hash of data for this factor. + */ struct hsh_table *ordered_data; - /* A SORTED array of weighted values */ - struct weighted_value *wv; + /* A Pointer to this hash table AFTER it has been SORTED and crunched */ + struct weighted_value **wvp; + + + /* The number of values in the above array + (if all the weights are 1, then this will + be the same as n) */ + int n_data; };