X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Flevene.c;h=89f635628029f3831fecbf5babd5115e6fc6e255;hb=50f6ea7d66d03895020891215fb4f55bbf061003;hp=098fcc5a1ba9feba488060e3406f54f84364c998;hpb=f164b2f6e545d8233572a4635d710b2a46784fdb;p=pspp diff --git a/src/math/levene.c b/src/math/levene.c index 098fcc5a1b..89f6356280 100644 --- a/src/math/levene.c +++ b/src/math/levene.c @@ -110,7 +110,6 @@ find_group (const struct levene *nl, const union value *target) { if (nl->cmp (nl, &l->group, target)) break; - l = NULL; } return l; } @@ -134,12 +133,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 +159,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 +185,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 +243,7 @@ levene_calculate (struct levene *nl) } numerator *= nn - hmap_count (&nl->hmap); - + return numerator / nl->denominator; }