X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fcovariance.h;h=22e38e1ed7ae4370298442a02d476a2cc01fe4d3;hb=a741cf4e8348e478ec5e8658cebeb80dc0376b1a;hp=8b8de88e9fa0b1ebfa277f9d25b41e6bf8e5ed0a;hpb=400eaca1f378c40dced767bdc14a395dff220b8d;p=pspp diff --git a/src/math/covariance.h b/src/math/covariance.h index 8b8de88e9f..22e38e1ed7 100644 --- a/src/math/covariance.h +++ b/src/math/covariance.h @@ -27,10 +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 *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);