local_proto.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * r.in.xyz
  3. *
  4. * Calculates univariate statistics from the non-null cells of a GRASS
  5. * raster map
  6. *
  7. * Copyright 2006 by M. Hamish Bowman, and The GRASS Development Team
  8. * Author: M. Hamish Bowman, University of Otago, Dunedin, New Zealand
  9. *
  10. * This program is free software licensed under the GPL (>=v2).
  11. * Read the COPYING file that comes with GRASS for details.
  12. *
  13. * This program is intended as a replacement for the GRASS 5
  14. * s.cellstats module.
  15. */
  16. #ifndef __LOCAL_PROTO_H__
  17. #define __LOCAL_PROTO_H__
  18. #include <grass/gis.h>
  19. #define BUFFSIZE 1024
  20. #define METHOD_N 1
  21. #define METHOD_MIN 2
  22. #define METHOD_MAX 3
  23. #define METHOD_RANGE 4
  24. #define METHOD_SUM 5
  25. #define METHOD_MEAN 6
  26. #define METHOD_STDDEV 7
  27. #define METHOD_VARIANCE 8
  28. #define METHOD_COEFF_VAR 9
  29. #define METHOD_MEDIAN 10
  30. #define METHOD_PERCENTILE 11
  31. #define METHOD_SKEWNESS 12
  32. #define METHOD_TRIMMEAN 13
  33. /* main.c */
  34. int scan_bounds(FILE *, int, int, int, int, char *, int, int, double, double);
  35. /* support.c */
  36. int blank_array(void *, int, int, RASTER_MAP_TYPE, int);
  37. int update_n(void *, int, int, int);
  38. int update_min(void *, int, int, int, RASTER_MAP_TYPE, double);
  39. int update_max(void *, int, int, int, RASTER_MAP_TYPE, double);
  40. int update_sum(void *, int, int, int, RASTER_MAP_TYPE, double);
  41. int update_sumsq(void *, int, int, int, RASTER_MAP_TYPE, double);
  42. #endif /* __LOCAL_PROTO_H__ */