X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Fdescriptives.c;h=95c57740b2a25110c2d3ed3084b77634a692eda0;hb=60c545e6e958d868db3399a8989d37d8f9e0c131;hp=819e836d0ef23cc45bc9aecc509271d55f7a1004;hpb=339f1956cc727eda788638644ef93ab7852b31cd;p=pspp diff --git a/src/language/stats/descriptives.c b/src/language/stats/descriptives.c index 819e836d0e..95c57740b2 100644 --- 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). */ -static int +static enum trns_result descriptives_trns_proc (void *trns_, struct ccase **c, casenumber case_idx UNUSED) { @@ -711,6 +711,12 @@ descriptives_trns_free (void *trns_) 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) @@ -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); } /* Statistical calculation. */