projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up how transformations work.
[pspp]
/
src
/
language
/
stats
/
descriptives.c
diff --git
a/src/language/stats/descriptives.c
b/src/language/stats/descriptives.c
index 819e836d0ef23cc45bc9aecc509271d55f7a1004..95c57740b2a25110c2d3ed3084b77634a692eda0 100644
(file)
--- a/
src/language/stats/descriptives.c
+++ b/
src/language/stats/descriptives.c
@@
-615,7
+615,7
@@
descriptives_set_all_sysmis_zscores (const struct dsc_trns *t, struct ccase *c)
analyis. 4) any of the variables in the original analysis were missing
(either system or user-missing values that weren't included).
*/
analyis. 4) any of the variables in the original analysis were missing
(either system or user-missing values that weren't included).
*/
-static
in
t
+static
enum trns_resul
t
descriptives_trns_proc (void *trns_, struct ccase **c,
casenumber case_idx UNUSED)
{
descriptives_trns_proc (void *trns_, struct ccase **c,
casenumber case_idx UNUSED)
{
@@
-711,6
+711,12
@@
descriptives_trns_free (void *trns_)
return ok;
}
return ok;
}
+static const struct trns_class descriptives_trns_class = {
+ .name = "DESCRIPTIVES (Z scores)",
+ .execute = descriptives_trns_proc,
+ .destroy = descriptives_trns_free,
+};
+
/* Sets up a transformation to calculate Z scores. */
static void
setup_z_trns (struct dsc_proc *dsc, struct dataset *ds)
/* Sets up a transformation to calculate Z scores. */
static void
setup_z_trns (struct dsc_proc *dsc, struct dataset *ds)
@@
-766,8
+772,7
@@
setup_z_trns (struct dsc_proc *dsc, struct dataset *ds)
}
}
}
}
- add_transformation (ds,
- descriptives_trns_proc, descriptives_trns_free, t);
+ add_transformation (ds, &descriptives_trns_class, t);
}
\f
/* Statistical calculation. */
}
\f
/* Statistical calculation. */