projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a base parameter to the interaction_case_hash function
[pspp]
/
src
/
math
/
covariance.c
diff --git
a/src/math/covariance.c
b/src/math/covariance.c
index b37da3d22930732878dae815c4435efaad8edbe1..f64e89d1eb2ffbee673c2179e6d2e48b78d066f3 100644
(file)
--- a/
src/math/covariance.c
+++ b/
src/math/covariance.c
@@
-347,6
+347,9
@@
covariance_accumulate_pass2 (struct covariance *cov, const struct ccase *c)
assert (cov->state == 1);
cov->state = 2;
assert (cov->state == 1);
cov->state = 2;
+ if (cov->categoricals)
+ categoricals_done (cov->categoricals);
+
cov->dim = cov->n_vars;
if (cov->categoricals)
cov->dim = cov->n_vars;
if (cov->categoricals)
@@
-362,9
+365,6
@@
covariance_accumulate_pass2 (struct covariance *cov, const struct ccase *c)
cov->moments[i] = resize_matrix (cov->moments[i], cov->dim);
}
cov->moments[i] = resize_matrix (cov->moments[i], cov->dim);
}
- // if (cov->categoricals)
- // categoricals_done (cov->categoricals);
-
/* Populate the moments matrices with the categorical value elements */
for (i = cov->n_vars; i < cov->dim; ++i)
{
/* Populate the moments matrices with the categorical value elements */
for (i = cov->n_vars; i < cov->dim; ++i)
{