X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Flinreg%2Fcoefficient.c;h=d09432b33d5d24430d0c9cb014485d4b81a35b5b;hb=f4ac26fb5880f9aeba2c7303d0e687b183bc3da1;hp=be189baa7c81ab8f586853158f1b29eea16b00b5;hpb=eb2feeb50b874b2643004e1b65011b662f2f469f;p=pspp-builds.git diff --git a/src/math/linreg/coefficient.c b/src/math/linreg/coefficient.c index be189baa..d09432b3 100644 --- a/src/math/linreg/coefficient.c +++ b/src/math/linreg/coefficient.c @@ -22,12 +22,9 @@ /* Accessor functions for matching coefficients and variables. */ -#include #include #include #include "src/math/design-matrix.h" -#include "src/data/variable.h" -#include "src/data/value.h" #include @@ -102,6 +99,24 @@ pspp_linreg_coeff_set_std_err (struct pspp_linreg_coeff *c, double std_err) c->std_err = std_err; } +/* + Return the estimated value of the coefficient. + */ +double +pspp_linreg_coeff_get_est (const struct pspp_linreg_coeff *c) +{ + assert (c != NULL); + return c->estimate; +} +/* + Return the standard error of the estimated coefficient. +*/ +double +pspp_linreg_coeff_get_std_err (const struct pspp_linreg_coeff *c) +{ + assert (c != NULL); + return c->std_err; +} /* How many variables are associated with this coefficient? */