X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fcovariance.c;h=bc5382c0c12752e899c5b7b6570f16acf7ae4c11;hb=6e5736d55e61f5dca727428213a835998eeacead;hp=2f4f525adb6b69a561cc524f079c4607d7198401;hpb=2414a9e37882fd23d9e50f916bb9e6a7cc2f6bad;p=pspp-builds.git diff --git a/src/math/covariance.c b/src/math/covariance.c index 2f4f525a..bc5382c0 100644 --- a/src/math/covariance.c +++ b/src/math/covariance.c @@ -742,7 +742,9 @@ struct tab_table * covariance_dump_enc_header (const struct covariance *cov, int length) { struct tab_table *t = tab_create (cov->dim, length); + int n; int i; + tab_title (t, "Covariance Encoding"); tab_box (t, @@ -758,18 +760,19 @@ covariance_dump_enc_header (const struct covariance *cov, int length) tab_vline (t, TAL_1, i + 1, 0, tab_nr (t) - 1); } - int n = 0; + n = 0; while (i < cov->dim) { struct string str; int idx = i - cov->n_vars; const struct interaction *iact = categoricals_get_interaction_by_subscript (cov->categoricals, idx); + int df; ds_init_empty (&str); interaction_to_string (iact, &str); - int df = categoricals_df (cov->categoricals, n); + df = categoricals_df (cov->categoricals, n); tab_joint_text (t, i, 0,