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: build37~66 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp-builds.git;a=commitdiff_plain;h=d342031c6d0e00840575fb01ab2ea136e674d600 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 8028697c..baf9cb73 100644 --- a/src/math/linreg.c +++ b/src/math/linreg.c @@ -641,7 +641,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,