pspp-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pspp-cvs] pspp/src regression.q


From: Jason H Stover
Subject: [Pspp-cvs] pspp/src regression.q
Date: Sun, 18 Dec 2005 18:20:04 +0000

CVSROOT:        /sources/pspp
Module name:    pspp
Branch:         
Changes by:     Jason H Stover <address@hidden> 05/12/18 18:20:04

Modified files:
        src            : regression.q 

Log message:
        Moved EXPORT comments to new header file

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pspp/pspp/src/regression.q.diff?tr1=1.23&tr2=1.24&r1=text&r2=text

Patches:
Index: pspp/src/regression.q
diff -u pspp/src/regression.q:1.23 pspp/src/regression.q:1.24
--- pspp/src/regression.q:1.23  Sat Dec 17 23:16:23 2005
+++ pspp/src/regression.q       Sun Dec 18 18:20:04 2005
@@ -36,6 +36,7 @@
 #include "lexer.h"
 #include <linreg/pspp_linreg.h>
 #include "missing-values.h"
+#include "reg_export_comments.h"
 #include "tab.h"
 #include "var.h"
 #include "vfm.h"
@@ -485,14 +486,7 @@
       assert (fp != NULL);
       fp = fopen (handle_get_filename (model_file), "w");
       fprintf (fp, "#include <string.h>\n\n");
-      fprintf (fp, "/*\n   Estimate the mean of Y, the dependent variable 
for\n");
-      fprintf (fp, "   the linear model of the form \n\n");
-      fprintf (fp, "      Y = b0 + b1 * X1 + b2 * X2 + ... + bk * X2 + 
error\n\n");
-      fprintf (fp, "   where X1, ..., Xk are the independent variables\n");
-      fprintf (fp, "   whose values are stored in var_vals and whose names, 
\n");
-      fprintf (fp, "   as known by PSPP, are stored in var_names. The 
estimated \n");
-      fprintf (fp, "   regression coefficients (i.e., the estimates of 
b0,...,bk) \n");
-      fprintf (fp, "   are stored in model_coeffs.\n*/\n");
+      fprintf (fp, "%s", reg_mean_cmt);
       fprintf (fp, "double\npspp_reg_estimate (const double *var_vals, const 
char *var_names[])\n{\n\tchar *model_depvars[%d] = {", c->n_indeps);
       for (i = 1; i < c->n_indeps; i++)
        {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]