projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
renamed pspp_linreg_coeff to pspp_coeff
[pspp-builds.git]
/
src
/
math
/
linreg
/
linreg.c
diff --git
a/src/math/linreg/linreg.c
b/src/math/linreg/linreg.c
index e496150e71ca27140bcaefc7538e5822aa4c7696..c717e4ada4bd690ea7b0938f6c1289525cb24542 100644
(file)
--- a/
src/math/linreg/linreg.c
+++ b/
src/math/linreg/linreg.c
@@
-97,7
+97,7
@@
int
pspp_linreg_get_vars (const void *c_, struct variable **v)
{
const pspp_linreg_cache *c = c_;
pspp_linreg_get_vars (const void *c_, struct variable **v)
{
const pspp_linreg_cache *c = c_;
- struct pspp_
linreg_
coeff *coef = NULL;
+ struct pspp_coeff *coef = NULL;
const struct variable *tmp;
int i;
int result = 0;
const struct variable *tmp;
int i;
int result = 0;
@@
-113,12
+113,12
@@
pspp_linreg_get_vars (const void *c_, struct variable **v)
/*
Start at c->coeff[1] to avoid the intercept.
*/
/*
Start at c->coeff[1] to avoid the intercept.
*/
- v[result] = (struct variable *) pspp_
linreg_
coeff_get_var (c->coeff[1], 0);
+ v[result] = (struct variable *) pspp_coeff_get_var (c->coeff[1], 0);
result = (v[result] == NULL) ? 0 : 1;
for (coef = c->coeff[2]; coef < c->coeff[c->n_coeffs]; coef++)
{
result = (v[result] == NULL) ? 0 : 1;
for (coef = c->coeff[2]; coef < c->coeff[c->n_coeffs]; coef++)
{
- tmp = pspp_
linreg_
coeff_get_var (coef, 0);
+ tmp = pspp_coeff_get_var (coef, 0);
assert (tmp != NULL);
/* Repeated variables are likely to bunch together, at the end
of the array. */
assert (tmp != NULL);
/* Repeated variables are likely to bunch together, at the end
of the array. */
@@
-187,7
+187,7
@@
pspp_linreg_cache_free (void *m)
gsl_matrix_free (c->cov);
for (i = 0; i < c->n_coeffs; i++)
{
gsl_matrix_free (c->cov);
for (i = 0; i < c->n_coeffs; i++)
{
- pspp_
linreg_
coeff_free (c->coeff[i]);
+ pspp_coeff_free (c->coeff[i]);
}
free (c);
return true;
}
free (c);
return true;