Estimate parameters. Moved some code to re-usable functions.
[pspp-builds.git] / src / math / linreg.h
index ff37a84fe815931962aaa9ff46add55e0a394353..05c8159630d8aa8da3467148a72e6d7a2da95218 100644 (file)
@@ -96,8 +96,7 @@ struct pspp_linreg_cache_struct
                                   coefficient here. */
 
   /*
-     The variable struct is ignored during estimation. It is here so
-     the calling procedure can find the variable used in the model.
+    Pointer to the dependent variable.
    */
   const struct variable *depvar;
 
@@ -200,7 +199,7 @@ pspp_linreg_residual (const struct variable **, const union value **,
  */
 int pspp_linreg_get_vars (const void *, const struct variable **);
 
-const struct pspp_coeff *pspp_linreg_get_coeff (const pspp_linreg_cache
+struct pspp_coeff *pspp_linreg_get_coeff (const pspp_linreg_cache
                                                       *,
                                                       const struct variable
                                                       *,