X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Flinreg.h;h=ff37a84fe815931962aaa9ff46add55e0a394353;hb=73f67789df91a09ee91976434fb15c2ee1fb5e78;hp=834b0922469c4f711bf035e5c6607c1d99c50fdd;hpb=51010fcf5cc308367c1fe3fafa785a3d2216b03d;p=pspp-builds.git diff --git a/src/math/linreg.h b/src/math/linreg.h index 834b0922..ff37a84f 100644 --- a/src/math/linreg.h +++ b/src/math/linreg.h @@ -20,10 +20,7 @@ #include #include #include - -struct variable; -struct pspp_coeff; -union value; +#include enum { @@ -189,8 +186,8 @@ bool pspp_linreg_cache_free (void *); values as indicated by opts. */ int -pspp_linreg (const gsl_vector * Y, const gsl_matrix * X, - const pspp_linreg_opts * opts, pspp_linreg_cache * cache); +pspp_linreg (const gsl_vector *, const struct design_matrix *, + const pspp_linreg_opts *, pspp_linreg_cache *); double pspp_linreg_predict (const struct variable **, const union value **, @@ -208,4 +205,14 @@ const struct pspp_coeff *pspp_linreg_get_coeff (const pspp_linreg_cache const struct variable *, const union value *); +/* + Return or set the standard deviation of the independent variable. + */ +double pspp_linreg_get_indep_variable_sd (pspp_linreg_cache *, const struct variable *); +void pspp_linreg_set_indep_variable_sd (pspp_linreg_cache *, const struct variable *, double); +/* + Mean of the independent variable. + */ +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); #endif