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:
7a39f11
)
fixed predict argument list
author
Jason Stover
<jhs@math.gcsu.edu>
Sun, 9 Apr 2006 14:00:41 +0000
(14:00 +0000)
committer
Jason Stover
<jhs@math.gcsu.edu>
Sun, 9 Apr 2006 14:00:41 +0000
(14:00 +0000)
src/language/stats/regression.q
patch
|
blob
|
history
diff --git
a/src/language/stats/regression.q
b/src/language/stats/regression.q
index 11a1f211c87c35889413634a652ab715825c5b8a..3037f72cdd0714b71a83c9cc44a78330db45c765 100644
(file)
--- a/
src/language/stats/regression.q
+++ b/
src/language/stats/regression.q
@@
-505,7
+505,6
@@
static void
subcommand_save (int save, pspp_linreg_cache *lc, const struct casefile *cf, int *is_missing)
{
int i;
subcommand_save (int save, pspp_linreg_cache *lc, const struct casefile *cf, int *is_missing)
{
int i;
- int k;
int case_num;
double residual;
const union value **vals;
int case_num;
double residual;
const union value **vals;
@@
-513,6
+512,8
@@
subcommand_save (int save, pspp_linreg_cache *lc, const struct casefile *cf, int
struct ccase c;
assert (lc != NULL);
struct ccase c;
assert (lc != NULL);
+ assert (is_missing != NULL);
+
if (save)
{
vals = xnmalloc (n_variables, sizeof (*vals));
if (save)
{
vals = xnmalloc (n_variables, sizeof (*vals));
@@
-526,7
+527,8
@@
subcommand_save (int save, pspp_linreg_cache *lc, const struct casefile *cf, int
{
vals[i] = case_data (&c, v_variables[i]->fv);
}
{
vals[i] = case_data (&c, v_variables[i]->fv);
}
- residual = (*lc->predict) (v_variables, vals, lc, n_variables);
+ residual = (*lc->predict) ((const struct variable **) v_variables,
+ (const union value **) vals, lc, n_variables);
}
}
free (vals);
}
}
free (vals);