[GRASS-dev] [GRASS GIS] #3184: v.vect.stats: errors in counts and statistics

GRASS GIS trac at osgeo.org
Thu Oct 20 00:25:16 PDT 2016


#3184: v.vect.stats: errors in counts and statistics
-------------------------+--------------------------
  Reporter:  veroandreo  |      Owner:  grass-dev@…
      Type:  defect      |     Status:  new
  Priority:  normal      |  Milestone:  7.2.0
 Component:  Vector      |    Version:  svn-trunk
Resolution:              |   Keywords:  v.vect.stats
       CPU:  x86-64      |   Platform:  Linux
-------------------------+--------------------------

Comment (by mlennert):

 Ah, when those itches itch...

 Please try the second patch I just uploaded. It works for my two test
 cases.

 I also modified the behavior concerning calculating averages. IIUC, the
 idea is that if original values are integers, the resulting average should
 also be integer. However, again IIUC, there was a floor() missing to
 actually make it integer after the 0.5. So I added this floor().

 Please test if the results seem ok. We can then discuss the +0.5 issue...

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3184#comment:7>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list