db.univar.html 1.2 KB

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