[GRASS5] statistics library?

Hamish hamish_nospam at yahoo.com
Mon Sep 8 22:53:52 EDT 2003


Hi all,

I was looking to modify r.series to add an option for x% trimmed mean,
and it occured to me that I'd probably want the same for r.statistics.

Looking further, s.univar, s.windavg, s.cellstats, r.series,
r.statistics, and probably others all impliment their own mix of
statistical queries, some with more options, some with less.

Wouldn't it be better to have a standard (simple) stats library in
src/libes/gmath/ which worked on an unsorted array of floats?

Is there something in R or somewhere else that could be reused? Would
that just lead to dependancy vs. sync-ing headaches, and be overkill
anyway? Start off with univar.c?


What started me on this was to trying to filter out bad data points from
a r.sun output map; probably better dealt with by setting a smaller
dist= value or fixing the bug if it is a bug..


?

Hamish




More information about the grass-dev mailing list