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 6562d321e6c18e465c4aab41b0e396b88ac69fc9..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>
@@
-35,8
+36,8
@@
pspp_linreg_predict (const struct variable **predictors,
const pspp_linreg_cache *c = c_;
int i;
int j;
const pspp_linreg_cache *c = c_;
int i;
int j;
- const struct pspp_
linreg_
coeff **found;
- const struct pspp_
linreg_
coeff *coe;
+ const struct pspp_coeff **found;
+ const struct pspp_coeff *coe;
double result;
double tmp;
double result;
double tmp;
@@
-69,8
+70,8
@@
pspp_linreg_predict (const struct variable **predictors,
if (i < c->n_coeffs)
{
found[i] = coe;
if (i < c->n_coeffs)
{
found[i] = coe;
- tmp = pspp_
linreg_
coeff_get_est (coe);
- if (
predictors[j]->type == NUMERIC
)
+ tmp = pspp_coeff_get_est (coe);
+ if (
var_is_numeric (predictors[j])
)
{
tmp *= vals[j]->f;
}
{
tmp *= vals[j]->f;
}