added pointer to predicted values
[pspp-builds.git] / src / math / linreg / linreg.c
index ec1354f33ef44b68eaf08d841bb5bf3fe6aa70af..a5d0936597d7bac275149b08490fb9487d798cb7 100644 (file)
@@ -116,7 +116,9 @@ pspp_linreg_cache_alloc (size_t n, size_t p)
    */
   c->method = PSPP_LINREG_SWEEP;
   c->predict = pspp_linreg_predict;
-  c->residual = pspp_linreg_residual;
+  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;
 }