X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fcovariance.c;h=44787c679a2a107acd5ef4eb1f7888c12ffbf366;hb=2c4b104df57f2e8b5ed2afa50819294aaac4aa6c;hp=cd8ec2ffd1e68b24f783f2ea3c9ce42b7598fae5;hpb=051724c1769c04a715f00f22f75c4a810f5bff11;p=pspp diff --git a/src/math/covariance.c b/src/math/covariance.c index cd8ec2ffd1..44787c679a 100644 --- a/src/math/covariance.c +++ b/src/math/covariance.c @@ -301,7 +301,7 @@ void covariance_accumulate_pass1 (struct covariance *cov, const struct ccase *c) { size_t i, j, m; - const double weight = cov->wv ? case_data (c, cov->wv)->f : 1.0; + const double weight = cov->wv ? case_num (c, cov->wv) : 1.0; assert (cov->passes == 2); if (!cov->pass_one_first_case_seen) @@ -346,7 +346,7 @@ void covariance_accumulate_pass2 (struct covariance *cov, const struct ccase *c) { size_t i, j; - const double weight = cov->wv ? case_data (c, cov->wv)->f : 1.0; + const double weight = cov->wv ? case_num (c, cov->wv) : 1.0; assert (cov->passes == 2); assert (cov->state >= 1); @@ -464,7 +464,7 @@ void covariance_accumulate (struct covariance *cov, const struct ccase *c) { size_t i, j, m; - const double weight = cov->wv ? case_data (c, cov->wv)->f : 1.0; + const double weight = cov->wv ? case_num (c, cov->wv) : 1.0; assert (cov->passes == 1);