X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fcovariance.h;h=eef6019ddfe4259b58f9f049ba6bd40bcd153bc9;hb=94933d3e30a7ae44c1636dbbf22c725235f06261;hp=ed5b3ee73426951d0084eb5df20f8492db541cb7;hpb=32ee0e0402d6d56674f53a47d879ec5c07dabe09;p=pspp diff --git a/src/math/covariance.h b/src/math/covariance.h index ed5b3ee734..eef6019ddf 100644 --- a/src/math/covariance.h +++ b/src/math/covariance.h @@ -27,20 +27,20 @@ struct variable; struct ccase ; struct categoricals; -struct covariance * covariance_1pass_create (size_t n_vars, const struct variable *const *vars, - const struct variable *wv, enum mv_class excl); +struct covariance * covariance_1pass_create (size_t n_vars, const struct variable *const *vars, + const struct variable *wv, enum mv_class excl, bool centered); struct covariance * covariance_2pass_create (size_t n_vars, const struct variable *const *vars, struct categoricals *cats, - const struct variable *wv, enum mv_class excl); + const struct variable *wv, enum mv_class excl, bool centered); 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 *); gsl_matrix * covariance_calculate (struct covariance *); -gsl_matrix * covariance_calculate_unnormalized (struct covariance *); +const gsl_matrix * covariance_calculate_unnormalized (struct covariance *); void covariance_destroy (struct covariance *cov); @@ -49,4 +49,8 @@ const gsl_matrix *covariance_moments (const struct covariance *cov, int m); const struct categoricals * covariance_get_categoricals (const struct covariance *cov); size_t covariance_dim (const struct covariance * cov); +struct pivot_table *covariance_dump_enc_header (const struct covariance *); +void covariance_dump_enc (const struct covariance *, const struct ccase *, + struct pivot_table *); + #endif