Changeset 17565
- Timestamp:
- May 7, 2008, 1:11:30 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psHistogram.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psHistogram.c
r15045 r17565 5 5 * @author GLG (MHPCC), EAM (IfA) 6 6 * 7 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $8 * @date $Date: 200 7-09-28 00:34:11$7 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2008-05-07 23:11:30 $ 9 9 * 10 10 * Copyright 2006 IfA, University of Hawaii … … 290 290 binNum = PS_MIN (binNum, numBins - 1); 291 291 292 // value is in bin 'i' if bound[i] <= value < bound[i] 293 292 294 // we may slightly overshoot or undershoot. creep up or down on the true bin 293 295 if (inF32->data.F32[i] < out->bounds->data.F32[binNum]) { … … 298 300 299 301 } 300 if (inF32->data.F32[i] > out->bounds->data.F32[binNum+1]) {302 if (inF32->data.F32[i] >= out->bounds->data.F32[binNum+1]) { 301 303 psTrace("psLib.math", 6, "missed target bin, adjusting: %f vs %f to %f\n", inF32->data.F32[i], out->bounds->data.F32[binNum], out->bounds->data.F32[binNum+1]); 302 while ((inF32->data.F32[i] > out->bounds->data.F32[binNum+1]) && (binNum < numBins - 1)) {304 while ((inF32->data.F32[i] >= out->bounds->data.F32[binNum+1]) && (binNum < numBins - 1)) { 303 305 binNum ++; 304 306 }
Note:
See TracChangeset
for help on using the changeset viewer.
