Changeset 34703 for trunk/psLib/src/math/psStats.c
- Timestamp:
- Nov 27, 2012, 11:04:35 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psStats.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psStats.c
r31152 r34703 764 764 goto escape; 765 765 } 766 if (!isfinite(max - min)) { 767 COUNT_WARNING(10, 100, "Range of of the input vector is too large: %lf.\n", (double)max - (double) min); 768 goto escape; 769 } 766 770 psTrace(TRACE, 6, "Data min/max is (%.2f, %.2f)\n", min, max); 767 771 … … 802 806 psTrace(TRACE, 6, "Numbins is %ld\n", numBins); 803 807 psTrace(TRACE, 6, "Creating a robust histogram from data range (%.2f - %.2f)\n", min, max); 808 809 // We are sometimes causing psHistogramAlloc to assert. 810 // Assert here so we can get more information about what is going wrong. 811 psAssert(numBins > 0, "Invalid numBins: %ld max: %f min: %f binSize: %f", numBins, max, min, binSize); 812 804 813 // Generate the histogram 805 814 histogram = psHistogramAlloc(min - 2.0*binSize, max + 2.0*binSize, numBins); … … 858 867 // if we did not mask anything, give up. 859 868 } 869 870 // We were causing psHistogramAlloc to assert. 871 // Assert here so we can get more information about what is going wrong. 872 psAssert(numBins > 0, "Invalid numBins %ld max: %f min: %f binSize: %f", numBins, max, min, binSize); 860 873 861 874 // ADD step 1: Convert the specific histogram to a cumulative histogram
Note:
See TracChangeset
for help on using the changeset viewer.
