[GRASS-SVN] r60423 - grass/trunk/raster/r.regression.multi

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 22 15:11:20 PDT 2014


Author: neteler
Date: 2014-05-22 15:11:20 -0700 (Thu, 22 May 2014)
New Revision: 60423

Modified:
   grass/trunk/raster/r.regression.multi/main.c
Log:
r.regression.multi: output also (map) name of predictor

Modified: grass/trunk/raster/r.regression.multi/main.c
===================================================================
--- grass/trunk/raster/r.regression.multi/main.c	2014-05-22 21:31:52 UTC (rev 60422)
+++ grass/trunk/raster/r.regression.multi/main.c	2014-05-22 22:11:20 UTC (rev 60423)
@@ -475,7 +475,8 @@
 
     for (i = 0; i < n_predictors; i++) {
 
-	fprintf(stdout, "\nb%d=%f\n", i + 1, B[0][i + 1]);
+	fprintf(stdout, "\npredictor=%s\n", input_mapx->answers[i]);
+	fprintf(stdout, "b%d=%f\n", i + 1, B[0][i + 1]);
 	if (n_predictors > 1) {
 	    double Rsqi, SEi, sumsqX_corr;
 



More information about the grass-commit mailing list