X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fcovariance.h;h=18f1137a79cc6e82d04db5448c3130fcfb81efa6;hb=ed7a8820e2f7797fb61a9a5628c18169dcfd3513;hp=0231f7989a0b07b39e5cf1e4c93492736ee66374;hpb=ec6f62cd6df384f06c1de6ed8a02dbeceafcd633;p=pspp diff --git a/src/math/covariance.h b/src/math/covariance.h index 0231f7989a..18f1137a79 100644 --- a/src/math/covariance.h +++ b/src/math/covariance.h @@ -27,27 +27,36 @@ 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); const gsl_matrix *covariance_moments (const struct covariance *cov, int m); const struct categoricals * covariance_get_categoricals (const struct covariance *cov); - -void covariance_get_var_indices (const struct covariance *cov, const struct variable **vars); size_t covariance_dim (const struct covariance * cov); + +struct tab_table ; +void +covariance_dump_enc (const struct covariance *cov, const struct ccase *c, + struct tab_table *t); + +struct tab_table * +covariance_dump_enc_header (const struct covariance *cov, int length); + + + #endif