[GRASS-SVN] r68643 - grass/branches/releasebranch_7_0/raster/r.neighbors

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 8 13:21:22 PDT 2016


Author: neteler
Date: 2016-06-08 13:21:21 -0700 (Wed, 08 Jun 2016)
New Revision: 68643

Modified:
   grass/branches/releasebranch_7_0/raster/r.neighbors/r.neighbors.html
Log:
r.neighbors manual: fix average example (was wrongly in maximum)

Modified: grass/branches/releasebranch_7_0/raster/r.neighbors/r.neighbors.html
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.neighbors/r.neighbors.html	2016-06-08 20:20:56 UTC (rev 68642)
+++ grass/branches/releasebranch_7_0/raster/r.neighbors/r.neighbors.html	2016-06-08 20:21:21 UTC (rev 68643)
@@ -82,12 +82,23 @@
 
 <br>
 
-(7*4 + 6 + 5 + 4*3)/9 = 5.66
+(7*4 + 6 + 5 + 4*3)/9 = 5.6667
 
 <br>
 
 The result is rounded to the nearest integer (in this case 6).
 
+<div class="code"><pre>
+   Raw Data     Operation     New Data
+   +---+---+---+          +---+---+---+
+   | 7 | 7 | 5 |          |   |   |   |
+   +---+---+---+ average  +---+---+---+
+   | 4 | 7 | 4 |--------->|   | 6 |   |
+   +---+---+---+          +---+---+---+
+   | 7 | 6 | 4 |          |   |   |   |
+   +---+---+---+          +---+---+---+
+</pre></div>
+
 <dt><b>median</b> 
 
 <dd>The value found half-way through a list of the
@@ -105,16 +116,6 @@
 <dt><b>maximum</b> 
 
 <dd>The maximum value within the neighborhood.
-<div class="code"><pre>
-       Raw Data     Operation     New Data
-   +---+---+---+          +---+---+---+
-   | 7 | 7 | 5 |          |   |   |   |
-   +---+---+---+ average  +---+---+---+
-   | 4 | 7 | 4 |--------->|   | 6 |   |
-   +---+---+---+          +---+---+---+
-   | 7 | 6 | 4 |          |   |   |   |
-   +---+---+---+          +---+---+---+
-</pre></div>
 
 <dt><b>range</b>
 



More information about the grass-commit mailing list