X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fcovariance.h;h=3d29dcea8b0193babed4238ef64a988b7fbb92a3;hb=263613c4fe117bcf0702cc7d0d334068b2424d37;hp=8b8de88e9fa0b1ebfa277f9d25b41e6bf8e5ed0a;hpb=cb586666724d5fcbdb658ce471b85484f0a7babe;p=pspp diff --git a/src/math/covariance.h b/src/math/covariance.h index 8b8de88e9f..3d29dcea8b 100644 --- a/src/math/covariance.h +++ b/src/math/covariance.h @@ -27,12 +27,20 @@ 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); +const gsl_matrix * covariance_calculate_unnormalized (struct covariance *); void covariance_destroy (struct covariance *cov);