projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8829e1f
)
Return 0.0 for mean of a categorical variable. Fixes bug mentioned in bug report...
author
Jason Stover
<jhs@debs.(none)>
Sat, 11 Jul 2009 19:45:49 +0000
(15:45 -0400)
committer
Jason Stover
<jhs@debs.(none)>
Sat, 11 Jul 2009 19:45:49 +0000
(15:45 -0400)
src/math/linreg.c
patch
|
blob
|
history
diff --git
a/src/math/linreg.c
b/src/math/linreg.c
index 8028697c6b7f3410b12927a0fe7ae1d82c5a6b4b..baf9cb737e8250b59a8814dac93dc5ca5b768390 100644
(file)
--- 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,