X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fcovariance-matrix.h;h=33a5d750533be2526ed6f23042ee2512da2dc057;hb=3785800c7a660f059857b66ec36efec99af0d052;hp=eee5e16a64512cfc648f0f66931ee1244afbdfaa;hpb=685407ad62911e5edb1ec093a01ec9e46563af44;p=pspp-builds.git diff --git a/src/math/covariance-matrix.h b/src/math/covariance-matrix.h index eee5e16a..33a5d750 100644 --- a/src/math/covariance-matrix.h +++ b/src/math/covariance-matrix.h @@ -21,14 +21,38 @@ #ifndef COVARIANCE_MATRIX_H #define COVARIANCE_MATRIX_H -#include "design-matrix.h" +#include -struct design_matrix * -covariance_matrix_create (int, const struct variable *[]); +struct moments1; +struct ccase; +struct hsh_table; +struct covariance_matrix; +enum +{ ONE_PASS, + TWO_PASS +}; -void covariance_matrix_destroy (struct design_matrix *); - -void covariance_pass_one (struct design_matrix *, double, double, - double, double, const struct variable *, - const struct variable *, const union value *, const union value *); +/* + How to deal with missing values. + */ +enum +{ LISTWISE, + PAIRWISE +}; +struct design_matrix *covariance_matrix_create (size_t, + const struct variable *[]); + +void covariance_matrix_destroy (struct covariance_matrix *cov); +void covariance_pass_two (struct design_matrix *, double, + double, double, const struct variable *, + const struct variable *, const union value *, + const union value *); +void covariance_matrix_compute (struct covariance_matrix *); +struct covariance_matrix *covariance_matrix_init (size_t, + const struct variable *[], + int, int, enum mv_class); +void covariance_matrix_free (struct covariance_matrix *); +void covariance_matrix_accumulate (struct covariance_matrix *, + const struct ccase *); +struct design_matrix *covariance_to_design (const struct covariance_matrix *); #endif