[GRASS-SVN] r33763 - grass/branches/develbranch_6/raster/r.univar2
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 8 08:58:28 EDT 2008
Author: neteler
Date: 2008-10-08 08:58:28 -0400 (Wed, 08 Oct 2008)
New Revision: 33763
Modified:
grass/branches/develbranch_6/raster/r.univar2/stats.c
Log:
increased output precision for -g flag (merge from trunk, r33762)
Modified: grass/branches/develbranch_6/raster/r.univar2/stats.c
===================================================================
--- grass/branches/develbranch_6/raster/r.univar2/stats.c 2008-10-08 12:58:10 UTC (rev 33762)
+++ grass/branches/develbranch_6/raster/r.univar2/stats.c 2008-10-08 12:58:28 UTC (rev 33763)
@@ -110,14 +110,14 @@
if (param.shell_style->answer) {
fprintf(stdout, "n=%d\n", stats->n);
fprintf(stdout, "null_cells=%d\n", stats->size - stats->n);
- fprintf(stdout, "min=%g\n", stats->min);
- fprintf(stdout, "max=%g\n", stats->max);
- fprintf(stdout, "range=%g\n", stats->max - stats->min);
- fprintf(stdout, "mean=%g\n", mean);
- fprintf(stdout, "mean_of_abs=%g\n", stats->sum_abs / stats->n);
- fprintf(stdout, "stddev=%g\n", stdev);
- fprintf(stdout, "variance=%g\n", variance);
- fprintf(stdout, "coeff_var=%g\n", var_coef);
+ fprintf(stdout, "min=%.15g\n", stats->min);
+ fprintf(stdout, "max=%.15g\n", stats->max);
+ fprintf(stdout, "range=%.15g\n", stats->max - stats->min);
+ fprintf(stdout, "mean=%.15g\n", mean);
+ fprintf(stdout, "mean_of_abs=%.15g\n", stats->sum_abs / stats->n);
+ fprintf(stdout, "stddev=%.15g\n", stdev);
+ fprintf(stdout, "variance=%.15g\n", variance);
+ fprintf(stdout, "coeff_var=%.15g\n", var_coef);
fprintf(stdout, "sum=%s\n", sum_str);
}
else {
More information about the grass-commit
mailing list