X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fcovariance.h;h=f12e994d52fd6f89d33cbdcb9e5f46e4689d117c;hb=a628323f67aa963f1e0ec866dc6cd9ede022de82;hp=22e38e1ed7ae4370298442a02d476a2cc01fe4d3;hpb=194d01aaac43a41a174037357f89bc164b5c5213;p=pspp-builds.git diff --git a/src/math/covariance.h b/src/math/covariance.h index 22e38e1e..f12e994d 100644 --- a/src/math/covariance.h +++ b/src/math/covariance.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,23 +26,27 @@ struct covariance; struct variable; struct ccase ; +struct categoricals; -struct covariance * covariance_1pass_create (size_t n_vars, const struct variable **vars, +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_2pass_create (size_t n_vars, const struct variable **vars, - size_t n_catvars, const struct variable **catvars, +covariance_2pass_create (size_t n_vars, const struct variable *const *vars, + struct categoricals *cats, 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); +gsl_matrix * covariance_calculate (struct covariance *); +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); + #endif