added predict function for linear model
[pspp-builds.git] / src / math / linreg / linreg.h
index 63f980b1876569b27dd65b840be9abd1cf56946e..2852dd77829ad69f6b53aa993c4386dfd57c1bea 100644 (file)
@@ -28,7 +28,7 @@
 
 struct variable ;
 struct pspp_linreg_coeff;
-
+union value;
 
 enum
 {
@@ -178,5 +178,7 @@ int pspp_linreg (const gsl_vector * Y, const gsl_matrix * X,
                 const pspp_linreg_opts * opts, 
                 pspp_linreg_cache * cache);
 
-
+double
+pspp_linreg_predict (const struct variable *, const union value *, 
+                    const pspp_linreg_cache *, int);
 #endif