*/
#include <config.h>
-#include <assert.h>
+#include "error.h"
#include <math.h>
#include <stdlib.h>
#include "alloc.h"
#include "algorithm.h"
#include "magic.h"
#include "misc.h"
-#include "stats.h"
#include "output.h"
#include "som.h"
#include "str.h"
for (i = 0; i < dict_get_var_cnt (default_dict); i++)
dict_get_var(default_dict, i)->p.frq.used = 0;
- lex_match_id ("FREQUENCIES");
if (!parse_frequencies (&cmd))
return CMD_FAILURE;
cmd.sort = FRQ_AVALUE;
/* Do it! */
- procedure (precalc, calc, postcalc, NULL);
+ procedure_with_splits (precalc, calc, postcalc, NULL);
return CMD_SUCCESS;
}
return 0;
}
+/* Returns nonzero iff the value in struct freq F is non-missing
+ for variable V. */
static int
not_missing (const void *f_, void *v_)
{
return !is_missing (&f->v, v);
}
+/* Summarizes the frequency table data for variable V. */
static void
-postprocess_freq_tab (struct variable * v)
+postprocess_freq_tab (struct variable *v)
{
hsh_compare_func *compare;
struct freq_tab *ft;
}
}
+/* Frees the frequency table for variable V. */
static void
cleanup_freq_tab (struct variable *v)
{