projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Return 0.0 for mean of a categorical variable. Fixes bug mentioned in bug report...
[pspp-builds.git]
/
src
/
math
/
linreg.c
diff --git
a/src/math/linreg.c
b/src/math/linreg.c
index 609a78b6dc9cd98a1d228110e533c396578d996d..2b4f7c9069000705425e7c6af8940e0cccb1315a 100644
(file)
--- 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,