[GRASS-SVN] r43711 - grass/trunk/raster/r.regression.line
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Sep 27 14:11:31 EDT 2010
Author: mmetz
Date: 2010-09-27 18:11:31 +0000 (Mon, 27 Sep 2010)
New Revision: 43711
Modified:
grass/trunk/raster/r.regression.line/main.c
grass/trunk/raster/r.regression.line/r.regression.line.html
Log:
update manual: no more -s flag (slower but more accurate), only option is much faster and accurate
Modified: grass/trunk/raster/r.regression.line/main.c
===================================================================
--- grass/trunk/raster/r.regression.line/main.c 2010-09-27 18:03:56 UTC (rev 43710)
+++ grass/trunk/raster/r.regression.line/main.c 2010-09-27 18:11:31 UTC (rev 43711)
@@ -3,13 +3,15 @@
*
* Calculates linear regression from two raster maps: y = a + b*x
* Copyright (C) 2010 by the GRASS Development Team
- * Author(s): Markus Metz
+ * Author(s): original author Dr. Agustin Lobo
+ * Markus Metz (conversion to C for speed)
*
* This program is free software under the GNU General Public
* License (>=v2). Read the file COPYING that comes with GRASS
* for details.
*
* This program is a replacement for the r.regression.line script
+ * (the C version is up to 200x faster than the script version)
*/
#include <stdio.h>
Modified: grass/trunk/raster/r.regression.line/r.regression.line.html
===================================================================
--- grass/trunk/raster/r.regression.line/r.regression.line.html 2010-09-27 18:03:56 UTC (rev 43710)
+++ grass/trunk/raster/r.regression.line/r.regression.line.html 2010-09-27 18:11:31 UTC (rev 43711)
@@ -10,9 +10,7 @@
regression model as a whole (F).
<H2>NOTES</H2>
-The flag <em>-s</em> select the slower method (applies to FP maps only)
-which writes out all pixel values individually to the temporary file.
-The results for offset/intercept (a) and gain/slope (b) are then
+The results for offset/intercept (a) and gain/slope (b) are
identical to that obtained from R-stats's lm() function.
<H2>EXAMPLE</H2>
@@ -44,6 +42,7 @@
Dr. Agustin Lobo - alobo at ija.csic.es<BR>
Updated to GRASS 5.7 Michael Barton, Arizona State University<BR>
-Script style output Markus Neteler
+Script style output Markus Neteler<BR>
+Conversion to C module Markus Metz
<p><i>Last changed: $Date$</i>
More information about the grass-commit
mailing list