X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fmath%2Fcovariance.h;h=22e38e1ed7ae4370298442a02d476a2cc01fe4d3;hb=a741cf4e8348e478ec5e8658cebeb80dc0376b1a;hp=ee096af6e0f758b0ddfc0710b6c00e024ebaf4e0;hpb=09e9433298a484353b1aac68018871553bee3d55;p=pspp diff --git a/src/math/covariance.h b/src/math/covariance.h index ee096af6e0..22e38e1ed7 100644 --- a/src/math/covariance.h +++ b/src/math/covariance.h @@ -27,14 +27,17 @@ struct covariance; struct variable; struct ccase ; -struct covariance * covariance_create (size_t n_vars, const struct variable **vars, - const struct variable *wv, enum mv_class excl); +struct covariance * covariance_1pass_create (size_t n_vars, const struct variable **vars, + const struct variable *wv, enum mv_class excl); + struct covariance * covariance_2pass_create (size_t n_vars, const struct variable **vars, size_t n_catvars, const struct variable **catvars, - const struct variable *weight, enum mv_class excl); + const struct variable *wv, enum mv_class excl); void covariance_accumulate (struct covariance *, const struct ccase *); +void covariance_accumulate_pass1 (struct covariance *, const struct ccase *); +void covariance_accumulate_pass2 (struct covariance *, const struct ccase *); const gsl_matrix * covariance_calculate (struct covariance *cov);