v.db.univar.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <h2>DESCRIPTION</h2>
  2. <em>v.db.univar</em> calculates basic univariate statistics for numeric
  3. attributes in a vector attribute table. It will calculate minimum,
  4. maximum, range, mean, standard deviation, variance, coefficient of
  5. variation, quartiles, median, and 90th percentile.
  6. It uses <em>db.select</em> to create list values for statistical calculations.
  7. <em>NOTES</em>
  8. A database connection must be defined for the selected vector layer.
  9. <h2>EXAMPLE</h2>
  10. In this example, random points are sampled from the elevation map
  11. (North Carolina sample dataset) and univariate statistics performed:
  12. <div class="code"><pre>
  13. g.region rast=elevation -p
  14. v.random output=samples n=100
  15. v.db.addtable samples column="heights double precision"
  16. v.what.rast samples raster=elevation colum=heights
  17. v.db.select samples
  18. v.db.univar samples colum=heights
  19. </pre></div>
  20. <h2>SEE ALSO</h2>
  21. <em>
  22. <a href="db.univar.html">db.univar</a>,
  23. <a href="r.univar.html">r.univar</a>,
  24. <a href="v.univar.html">v.univar</a>,
  25. <a href="db.select.html">db.select</a>,
  26. <a href="d.vect.thematic.html">d.vect.thematic</a>
  27. </em>
  28. <h2>AUTHOR</h2>
  29. Michael Barton, Arizona State University
  30. <p>and authors of <em>r.univar.sh</em>
  31. <p><i>Last changed: $Date$</i>