arraystats.h 557 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef GRASS_ARRAYSTATS_H
  2. #define GRASS_ARRAYSTATS_H
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. #include <math.h>
  6. #include <grass/gis.h>
  7. #include <grass/glocale.h>
  8. #include <grass/dbmi.h>
  9. struct GASTATS
  10. {
  11. double count;
  12. double min;
  13. double max;
  14. double sum;
  15. double sumsq;
  16. double sumabs;
  17. double mean;
  18. double meanabs;
  19. double var;
  20. double stdev;
  21. };
  22. #define CLASS_INTERVAL 1
  23. #define CLASS_STDEV 2
  24. #define CLASS_QUANT 3
  25. #define CLASS_EQUIPROB 4
  26. #define CLASS_DISCONT 5
  27. #include <grass/defs/arraystats.h>
  28. #endif