# HG changeset patch # User bert # Date 1122321337 0 # Node ID 59f1bf3119f3d6ce4df9723d9558a0359d2e39cb # Parent c16224e56bb53dd8d9441a20625d27c4fdbbc1e6 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.14.2.3 2005-03-16 19:02:52 bert + * Revision 1.14.2.4 2005-07-25 19:55:37 bert + * Fix pct_T calculation by taking into account a possibly non-zero histogram floor + * + * Revision 1.14.2.3 2005/03/16 19:02:52 bert * Port changes from 2.0 branch * * Revision 1.14.2.2 2004/10/18 15:02:13 bert @@ -1050,6 +1053,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: