# HG changeset patch # User bert # Date 1122321412 0 # Node ID 1945ee537fe8b335ad7ed30170ac5bff89c3ad7d # Parent 82027f6cc1610b8dd4baba5fd272043edc039b60 Fix pct_T calculation by taking into account a possibly non-zero histogram floor diff --git a/progs/mincstats/mincstats.c b/progs/mincstats/mincstats.c --- a/progs/mincstats/mincstats.c +++ b/progs/mincstats/mincstats.c @@ -5,7 +5,10 @@ * University of Queensland, Australia * * $Log: mincstats.c,v $ - * Revision 1.20 2005-05-20 15:39:45 bert + * Revision 1.21 2005-07-25 19:56:52 bert + * Fix pct_T calculation by taking into account a possibly non-zero histogram floor + * + * Revision 1.20 2005/05/20 15:39:45 bert * Remove and/or conditionalize test code for memory-mapped files (see HDF5_MMAP_TEST) * * Revision 1.19 2004/12/14 23:39:36 bert @@ -1064,6 +1067,7 @@ stats->pct_T = ((double)pctt_bin + (pctT - cdf[pctt_bin]) * pdf[pctt_bin + 1]) * hist_sep; } + stats->pct_T += hist_centre[0]; /* Add histogram minimum */ switch (BMTMethod) { case BMT_KITTLER: