X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Flevene.c;h=0175ceb70dae6c33f1ea1d64d7f0252b3295d8e0;hb=e04c680aae366f5af85cd50776875fcdf3c8927a;hp=098fcc5a1ba9feba488060e3406f54f84364c998;hpb=f2d4cc6e7a4d5948a2c0cf70883347000a79a2b0;p=pspp diff --git a/src/math/levene.c b/src/math/levene.c index 098fcc5a1b..0175ceb70d 100644 --- a/src/math/levene.c +++ b/src/math/levene.c @@ -134,12 +134,12 @@ levene_create (int indep_width, const union value *cutpoint) /* Data accumulation. First pass */ -void +void levene_pass_one (struct levene *nl, double value, double weight, const union value *gv) { struct lev *lev = find_group (nl, gv); - if ( nl->pass == 0 ) + if ( nl->pass == 0 ) { nl->pass = 1; } @@ -160,7 +160,7 @@ levene_pass_one (struct levene *nl, double value, double weight, const union val } /* Data accumulation. Second pass */ -void +void levene_pass_two (struct levene *nl, double value, double weight, const union value *gv) { struct lev *lev = NULL; @@ -186,7 +186,7 @@ levene_pass_two (struct levene *nl, double value, double weight, const union val } /* Data accumulation. Third pass */ -void +void levene_pass_three (struct levene *nl, double value, double weight, const union value *gv) { double z; @@ -244,7 +244,7 @@ levene_calculate (struct levene *nl) } numerator *= nn - hmap_count (&nl->hmap); - + return numerator / nl->denominator; }