X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Flinreg.h;h=f9d8c9b3f740abfc161ea7df2ecf20131985f700;hb=b5c82cc9aabe7e641011130240ae1b2e84348e23;hp=a9577d648372dc640056fc07762405ccc0aff6c1;hpb=6c1c66790acdd2c12cf2cca4555f70f20a4d21d7;p=pspp-builds.git diff --git a/src/math/linreg.h b/src/math/linreg.h index a9577d64..f9d8c9b3 100644 --- a/src/math/linreg.h +++ b/src/math/linreg.h @@ -21,6 +21,7 @@ #include #include #include +#include enum { @@ -199,7 +200,7 @@ pspp_linreg_residual (const struct variable **, const union value **, /* All variables used in the model. */ -int pspp_linreg_get_vars (const void *, struct variable **); +int pspp_linreg_get_vars (const void *, const struct variable **); struct pspp_coeff *pspp_linreg_get_coeff (const pspp_linreg_cache *, @@ -220,5 +221,6 @@ void pspp_linreg_set_indep_variable_mean (pspp_linreg_cache *, const struct vari /* Regression using only the covariance matrix. */ -int pspp_linreg_with_cov (const struct design_matrix *, pspp_linreg_cache *); +void pspp_linreg_with_cov (const struct covariance_matrix *, pspp_linreg_cache *); +double pspp_linreg_mse (const pspp_linreg_cache *); #endif