X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Fcovariance.h;h=0231f7989a0b07b39e5cf1e4c93492736ee66374;hb=631e2243322503338b497cd13529fbb2c5833e3d;hp=cb83e151409224d1bf1d982a259179b9e79f5f49;hpb=956933cf2545aa67692fd72ef8e4b3e00e524281;p=pspp-builds.git diff --git a/src/math/covariance.h b/src/math/covariance.h index cb83e151..0231f798 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, 2011 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 @@ -18,10 +18,9 @@ #ifndef COVARIANCE_H #define COVARIANCE_H -#include - -#include #include +#include +#include "data/missing-values.h" struct covariance; struct variable; @@ -40,8 +39,8 @@ 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 *); +gsl_matrix * covariance_calculate (struct covariance *); +gsl_matrix * covariance_calculate_unnormalized (struct covariance *); void covariance_destroy (struct covariance *cov); @@ -49,4 +48,6 @@ 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); #endif