projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Separate table functions that format their arguments from those that don't.
[pspp]
/
src
/
math
/
levene.c
diff --git
a/src/math/levene.c
b/src/math/levene.c
index 7bd582105f940c28ffeb26506d4c5fe941ff728d..f7e269991346cd0c6cb076eacec04bcbbd62590c 100644
(file)
--- a/
src/math/levene.c
+++ b/
src/math/levene.c
@@
-246,9
+246,7
@@
levene2_precalc (struct levene_info *l)
struct hsh_table *hash = group_proc_get (var)->group_hash;
struct hsh_table *hash = group_proc_get (var)->group_hash;
- for(g = (struct group_statistics *) hsh_first(hash,&hi);
- g != 0 ;
- g = (struct group_statistics *) hsh_next(hash,&hi) )
+ for (g = hsh_first(hash,&hi); g != 0; g = hsh_next(hash, &hi))
{
g->lz_mean = g->lz_total / g->n ;
}
{
g->lz_mean = g->lz_total / g->n ;
}
@@
-308,9
+306,7
@@
levene2_postcalc (struct levene_info *l)
struct group_proc *gp = group_proc_get (var);
struct hsh_table *hash = gp->group_hash;
struct group_proc *gp = group_proc_get (var);
struct hsh_table *hash = gp->group_hash;
- for(g = (struct group_statistics *) hsh_first(hash,&hi);
- g != 0 ;
- g = (struct group_statistics *) hsh_next(hash,&hi) )
+ for (g = hsh_first(hash, &hi); g != 0; g = hsh_next(hash, &hi))
{
lz_numerator += g->n * pow2(g->lz_mean - l->lz[v].grand_mean );
}
{
lz_numerator += g->n * pow2(g->lz_mean - l->lz[v].grand_mean );
}