projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add ability for reverse iteration to tower code, and corresponding
[pspp]
/
src
/
math
/
linreg
/
predict.c
diff --git
a/src/math/linreg/predict.c
b/src/math/linreg/predict.c
index ca96ab097e198d248e6aacf5a2208fd1ac808c3c..7f404fcf5e575ff212ae7520fc7370af71e17e41 100644
(file)
--- a/
src/math/linreg/predict.c
+++ b/
src/math/linreg/predict.c
@@
-18,6
+18,7
@@
Franklin Street, Fifth Floor, Boston, MA 02111-1307, USA.
*/
Franklin Street, Fifth Floor, Boston, MA 02111-1307, USA.
*/
+#include <config.h>
#include <math/linreg/linreg.h>
#include <math/coefficient.h>
#include <gl/xalloc.h>
#include <math/linreg/linreg.h>
#include <math/coefficient.h>
#include <gl/xalloc.h>
@@
-70,7
+71,7
@@
pspp_linreg_predict (const struct variable **predictors,
{
found[i] = coe;
tmp = pspp_coeff_get_est (coe);
{
found[i] = coe;
tmp = pspp_coeff_get_est (coe);
- if (
predictors[j]->type == NUMERIC
)
+ if (
var_is_numeric (predictors[j])
)
{
tmp *= vals[j]->f;
}
{
tmp *= vals[j]->f;
}