Call categoricals_done at start of second pass. sid-i386-build96
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 24 Oct 2009 07:26:21 +0000 (09:26 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 24 Oct 2009 08:00:02 +0000 (10:00 +0200)
src/math/covariance.c

index f3ef7ad4d014bfaeeda4a85da41e52c0e31800e4..7e9736291c4a32e81cad37b0a6fac7aa902f5b26 100644 (file)
@@ -348,6 +348,8 @@ covariance_accumulate_pass2 (struct covariance *cov, const struct ccase *c)
          cov->moments[i] = resize_matrix (cov->moments[i], cov->dim);
        }
 
+      categoricals_done (cov->categoricals);
+
       /* Divide the means by the number of samples */
       for (i = 0; i < cov->n_vars; ++i)
        {