From: Jason Stover Date: Wed, 26 Apr 2006 19:22:51 +0000 (+0000) Subject: added pointer to predicted values X-Git-Tag: v0.6.0~943 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fc7b08b53d3a07385327d6f2aff11a2f9abce08;p=pspp-builds.git added pointer to predicted values --- diff --git a/src/math/linreg/ChangeLog b/src/math/linreg/ChangeLog index 10c23462..274faf41 100644 --- a/src/math/linreg/ChangeLog +++ b/src/math/linreg/ChangeLog @@ -1,3 +1,10 @@ +2006-04-26 Jason Stover + + * linreg.h: Added a pointer to predicted values. + + * linreg.c (pspp_linreg_cache_alloc): Initialized pointer to + predicted values. + 2006-04-22 Jason Stover * predict.c (pspp_linreg_residual): Removed unnecessary cast of c_ diff --git a/src/math/linreg/linreg.c b/src/math/linreg/linreg.c index 2945b26d..a5d09365 100644 --- a/src/math/linreg/linreg.c +++ b/src/math/linreg/linreg.c @@ -118,6 +118,7 @@ pspp_linreg_cache_alloc (size_t n, size_t p) c->predict = pspp_linreg_predict; c->residual = pspp_linreg_residual; /* The procedure to comput my residuals. */ c->resid = NULL; /* The variable storing my residuals. */ + c->pred = NULL; /* The variable storing my predicted values. */ return c; } diff --git a/src/math/linreg/linreg.h b/src/math/linreg/linreg.h index dbdc23c0..7723187a 100644 --- a/src/math/linreg/linreg.h +++ b/src/math/linreg/linreg.h @@ -164,6 +164,7 @@ struct pspp_linreg_cache_struct const union value *, const void *, int); struct variable *resid; + struct variable *pred; }; typedef struct pspp_linreg_cache_struct pspp_linreg_cache;