r.univar: allow percentile= to be doubles
|Reported by:||hamish||Owned by:|
r.univar it is useful to have sub-integer percentile output, e.g. for calculating confidence intervals/sigma at 68.2689%, 95.45%, and 99.73%. Currently
r.univar only accepts whole integers for the percentile=. Actually it's worse: it accepts floats on the command line but they quietly get truncated into integers.(!)
r.colors.stddev is hit by this and probably anyone doing stats on map values.
the attached patch (vs. 6.5svn) attempts to fix this. please review. R-bridge users please compare with R's answers.
#spearfish g.region rast=elevation.10m r.univar elevation.10m perc=68,68.2689,95,95.45,99,99.73 -e