X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ft-test.h;h=ad1d45cafa48ad18cd0dab176f8521abdbc62a70;hb=77cbf2d7d1e5712d4ef952f265ed5c2917fc3f68;hp=8a72fb9ddd0ca7bf77af532dd985a0df9cb0382c;hpb=6429e116f1cacfe4be0ec6aae341cd712ca58463;p=pspp diff --git a/src/t-test.h b/src/t-test.h index 8a72fb9ddd..ad1d45cafa 100644 --- a/src/t-test.h +++ b/src/t-test.h @@ -20,9 +20,15 @@ #ifndef T_TEST_H #define T_TEST_H -/* T-TEST private data */ -struct t_test_proc +#include "val.h" + +/* Statistics for grouped data */ +struct group_statistics { + /* The value of the independent variable for this group */ + union value id; + + /* The arithmetic mean */ double mean; /* Population std. deviation */ @@ -42,11 +48,35 @@ struct t_test_proc /* Std Err of Mean */ double se_mean; - /* Sum of differnces */ + /* Sum of differences */ double sum_diff; /* Mean of differences */ double mean_diff ; + + /* Running total of the Levene for this group */ + double lz_total; + + /* Group mean of Levene */ + double lz_mean; + }; + +/* T-TEST private data */ +struct t_test_proc +{ + /* Stats for the `universal group' */ + struct group_statistics ugs; + + /* Number of groups */ + int n_groups ; + + /* Stats for individual groups */ + struct group_statistics *gs; + + /* The levene statistic */ + double levene ; +}; + #endif