X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Flinreg.h;h=f9d8c9b3f740abfc161ea7df2ecf20131985f700;hb=45fb19608ffa759f7a0221878d1a9a72c6727dc7;hp=5a5c4c8eb3e8db543b1db068ae5670dd6f62f1da;hpb=b4fdd51a0bf62800c53c8a805f31ea735d931029;p=pspp-builds.git diff --git a/src/math/linreg.h b/src/math/linreg.h index 5a5c4c8e..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 *, @@ -216,4 +217,10 @@ void pspp_linreg_set_indep_variable_sd (pspp_linreg_cache *, const struct variab */ double pspp_linreg_get_indep_variable_mean (pspp_linreg_cache *, const struct variable *); void pspp_linreg_set_indep_variable_mean (pspp_linreg_cache *, const struct variable *, double); + +/* + Regression using only the covariance matrix. + */ +void pspp_linreg_with_cov (const struct covariance_matrix *, pspp_linreg_cache *); +double pspp_linreg_mse (const pspp_linreg_cache *); #endif