Changeset 15048
- Timestamp:
- Sep 27, 2007, 2:36:30 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psStats.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psStats.c
r14931 r15048 13 13 * use ->min and ->max (PS_STAT_USE_RANGE) 14 14 * 15 * @version $Revision: 1.21 6$ $Name: not supported by cvs2svn $16 * @date $Date: 2007-09-2 0 23:59:01$15 * @version $Revision: 1.217 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2007-09-28 00:36:30 $ 17 17 * 18 18 * Copyright 2006 IfA, University of Hawaii … … 1697 1697 // Calculate the number of bins. 1698 1698 // XXX can we calculate the binMin, binMax **before** building this histogram? 1699 long numBins = (max - min) / binSize; 1699 // if the range is too absurd, adjust numBins & binSize 1700 long numBins = PS_MAX (5, PS_MIN (10000, (max - min) / binSize)); 1701 binSize = (max - min) / (float) numBins; 1700 1702 psTrace(TRACE, 6, "The new min/max values are (%f, %f).\n", min, max); 1701 1703 psTrace(TRACE, 6, "The new bin size is %f.\n", binSize);
Note:
See TracChangeset
for help on using the changeset viewer.
