void
ks_one_sample_execute (const struct dataset *ds,
- struct casereader *input,
- enum mv_class exclude,
- const struct npar_test *test)
+ struct casereader *input,
+ enum mv_class exclude,
+ const struct npar_test *test,
+ bool x UNUSED, double y UNUSED)
{
const struct dictionary *dict = dataset_dict (ds);
const struct ks_one_sample_test *kst = UP_CAST (test, const struct ks_one_sample_test, parent.parent);
const struct fmt_spec *wfmt = wvar ? var_get_print_format (wvar) : & F_8_0;
bool warn = true;
int v;
+ struct casereader *r = casereader_clone (input);
struct ks *ks = xcalloc (sizeof *ks, ost->n_vars);
ks[v].ssq = 0;
}
- struct casereader *r = casereader_clone (input);
-
for (; (c = casereader_read (r)) != NULL; case_unref (c))
{
const double weight = dict_get_case_weight (dict, c, &warn);
for (v = 0; v < ost->n_vars; ++v)
{
+ const struct variable *var = ost->vars[v];
+ double cc = 0;
+ double prev_empirical = 0;
+
switch (kst->dist)
{
case KS_UNIFORM:
NOT_REACHED ();
}
- const struct variable *var = ost->vars[v];
- double cc = 0;
- double prev_empirical = 0;
r = sort_execute_1var (casereader_clone (input), var);
for (; (c = casereader_read (r)) != NULL; case_unref (c))
{
void ks_one_sample_execute (const struct dataset *ds,
struct casereader *input,
enum mv_class exclude,
- const struct npar_test *test);
+ const struct npar_test *test,
+ bool, double);
#endif
for (v = 0; v < cmd->n_vars; ++v)
{
+ gsl_matrix *cm;
struct per_var_ws *pvw = &ws.vws[v];
const struct categoricals *cats = covariance_get_categoricals (pvw->cov);
categoricals_done (cats);
- gsl_matrix *cm = covariance_calculate_unnormalized (pvw->cov);
+ cm = covariance_calculate_unnormalized (pvw->cov);
moments1_calculate (ws.dd_total[v]->mom, &pvw->n, NULL, NULL, NULL, NULL);
struct hmap valmap; /* A map of value nodes */
};
+#if 0
static void
dump_interaction (const struct interaction *iact)
{
printf ("Interaction: %s\n", ds_cstr (&str));
ds_destroy (&str);
}
+#endif
static struct variable_node *
void *aux2;
};
-
+#if 0
static void
categoricals_dump (const struct categoricals *cat)
{
printf (")\n");
}
}
-
+#endif
void
categoricals_destroy (struct categoricals *cat)
if ( gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (rd->cb[CB_CUSTOM])))
{
- char *text = gtk_entry_get_text (GTK_ENTRY (rd->entry));
+ const char *text = gtk_entry_get_text (GTK_ENTRY (rd->entry));
append_fragment (string, text, PSPPIRE_VAR_VIEW (rd->variables));
}