From: Jason Stover Date: Sat, 11 Jul 2009 19:45:49 +0000 (-0400) Subject: Return 0.0 for mean of a categorical variable. Fixes bug mentioned in bug report... X-Git-Tag: sav-api~248^2~63^2~13 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de4081e6d843a1e3b2a2a4c563ad6434c626377a;p=pspp Return 0.0 for mean of a categorical variable. Fixes bug mentioned in bug report 26861. --- diff --git a/src/math/linreg.c b/src/math/linreg.c index 609a78b6dc..2b4f7c9069 100644 --- a/src/math/linreg.c +++ b/src/math/linreg.c @@ -626,7 +626,7 @@ double pspp_linreg_get_indep_variable_mean (pspp_linreg_cache *c, const struct v coef = pspp_linreg_get_coeff (c, v, NULL); return pspp_coeff_get_mean (coef); } - return GSL_NAN; + return 0.0; } void pspp_linreg_set_indep_variable_mean (pspp_linreg_cache *c, const struct variable *v,