X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Flinreg.h;h=5a5c4c8eb3e8db543b1db068ae5670dd6f62f1da;hb=b4fdd51a0bf62800c53c8a805f31ea735d931029;hp=18f962c06046b1af232af22b656d231722bcbd65;hpb=5f8dc7ca9962b212d623566e287b0f1d365f6398;p=pspp-builds.git diff --git a/src/math/linreg.h b/src/math/linreg.h index 18f962c0..5a5c4c8e 100644 --- a/src/math/linreg.h +++ b/src/math/linreg.h @@ -96,9 +96,10 @@ struct pspp_linreg_cache_struct coefficient here. */ /* - Pointer to the dependent variable. + Pointers to the variables. */ const struct variable *depvar; + const struct variable **indep_vars; gsl_vector *residuals; struct pspp_coeff **coeff; @@ -175,7 +176,8 @@ typedef struct pspp_linreg_cache_struct pspp_linreg_cache; to it. n is the number of cases, p is the number of independent variables. */ -pspp_linreg_cache *pspp_linreg_cache_alloc (size_t n, size_t p); +pspp_linreg_cache *pspp_linreg_cache_alloc (const struct variable *, const struct variable **, + size_t, size_t); bool pspp_linreg_cache_free (void *);