Mercurial > hg > minc-tools
changeset 2180:1945ee537fe8
Fix pct_T calculation by taking into account a possibly non-zero histogram floor
author | bert <bert> |
---|---|
date | Mon, 25 Jul 2005 19:56:52 +0000 |
parents | 82027f6cc161 |
children | 73d3822b5bf3 |
files | progs/mincstats/mincstats.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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: