Pārlūkot izejas kodu

update manual: no more -s flag (slower but more accurate), only option is much faster and accurate

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@43711 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 14 gadi atpakaļ
vecāks
revīzija
d53419a8bf

+ 3 - 1
raster/r.regression.line/main.c

@@ -3,13 +3,15 @@
  *
  *
  *   Calculates linear regression from two raster maps: y = a + b*x
  *   Calculates linear regression from two raster maps: y = a + b*x
  *   Copyright (C) 2010 by the GRASS Development Team
  *   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
  *      This program is free software under the GNU General Public
  *      License (>=v2). Read the file COPYING that comes with GRASS
  *      License (>=v2). Read the file COPYING that comes with GRASS
  *      for details.
  *      for details.
  *
  *
  *   This program is a replacement for the r.regression.line script
  *   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>
 #include <stdio.h>

+ 3 - 4
raster/r.regression.line/r.regression.line.html

@@ -10,9 +10,7 @@ number of elements (N), means (medX, medY), standard deviations
 regression model as a whole (F).
 regression model as a whole (F).
 
 
 <H2>NOTES</H2>
 <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. 
 identical to that obtained from R-stats's lm() function. 
 
 
 <H2>EXAMPLE</H2>
 <H2>EXAMPLE</H2>
@@ -44,6 +42,7 @@ echo $R
 
 
 Dr. Agustin Lobo - alobo at ija.csic.es<BR>
 Dr. Agustin Lobo - alobo at ija.csic.es<BR>
 Updated to GRASS 5.7 Michael Barton, Arizona State University<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>
 <p><i>Last changed: $Date$</i>