Changeset 9540 for trunk/psLib/src/math/psStats.c
- Timestamp:
- Oct 13, 2006, 12:04:58 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psStats.c (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psStats.c
r9538 r9540 16 16 * use ->min and ->max (PS_STAT_USE_RANGE) 17 17 * 18 * @version $Revision: 1.18 6$ $Name: not supported by cvs2svn $19 * @date $Date: 2006-10-13 2 1:13:48 $18 * @version $Revision: 1.187 $ $Name: not supported by cvs2svn $ 19 * @date $Date: 2006-10-13 22:04:58 $ 20 20 * 21 21 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 480 480 PS_ASSERT_PTR_NON_NULL(histogram->bounds, NULL); 481 481 PS_ASSERT_PTR_NON_NULL(histogram->nums, NULL); 482 if (psTraceGetLevel( __func__) >= 8) {482 if (psTraceGetLevel("psLib.math") >= 8) { 483 483 PS_VECTOR_PRINT_F32(histogram->nums); 484 484 } … … 561 561 } 562 562 563 if (psTraceGetLevel( __func__) >= 8) {563 if (psTraceGetLevel("psLib.math") >= 8) { 564 564 PS_VECTOR_PRINT_F32(smooth); 565 565 } … … 705 705 { 706 706 psTrace("psLib.math", 4, "---- %s() begin ----\n", __func__); 707 psTrace("psLib.math", 4, "Trace level is %d\n", psTraceGetLevel( __func__));707 psTrace("psLib.math", 4, "Trace level is %d\n", psTraceGetLevel("psLib.math")); 708 708 709 709 // Ensure that stats->clipIter is within the proper range. … … 886 886 psTrace("psLib.math", 4, "---- %s() begin ----\n", __func__); 887 887 psTrace("psLib.math", 5, "binNum, yVal is (%d, %f)\n", binNum, yVal); 888 if (psTraceGetLevel( __func__) >= 8) {888 if (psTraceGetLevel("psLib.math") >= 8) { 889 889 PS_VECTOR_PRINT_F32(xVec); 890 890 PS_VECTOR_PRINT_F32(yVec); … … 1058 1058 { 1059 1059 psTrace("psLib.math", 4, "---- %s() begin ----\n", __func__); 1060 if (psTraceGetLevel( __func__) >= 8) {1060 if (psTraceGetLevel("psLib.math") >= 8) { 1061 1061 PS_VECTOR_PRINT_F32(myVector); 1062 1062 } … … 1141 1141 histogram = psHistogramAlloc(min, max, numBins); 1142 1142 histogram = psVectorHistogram(histogram, myVector, errors, mask, maskVal); 1143 if (psTraceGetLevel( __func__) >= 8) {1143 if (psTraceGetLevel("psLib.math") >= 8) { 1144 1144 PS_VECTOR_PRINT_F32(histogram->bounds); 1145 1145 PS_VECTOR_PRINT_F32(histogram->nums); … … 1152 1152 cumulative->nums->data.F32[i] = cumulative->nums->data.F32[i-1] + histogram->nums->data.F32[i]; 1153 1153 } 1154 if (psTraceGetLevel( __func__) >= 8) {1154 if (psTraceGetLevel("psLib.math") >= 8) { 1155 1155 PS_VECTOR_PRINT_F32(cumulative->bounds); 1156 1156 PS_VECTOR_PRINT_F32(cumulative->nums); … … 1417 1417 psHistogram *histogram = psHistogramAlloc(min, max, numBins); // A new histogram (without outliers) 1418 1418 histogram = psVectorHistogram(histogram, myVector, errors, mask, maskVal); 1419 if (psTraceGetLevel( __func__) >= 8) {1419 if (psTraceGetLevel("psLib.math") >= 8) { 1420 1420 PS_VECTOR_PRINT_F32(histogram->nums); 1421 1421 } … … 1423 1423 // Smooth the resulting histogram with a Gaussian with sigma_s = 1 bin. 1424 1424 psVector *smoothed = vectorSmoothHistGaussian(histogram, newBinSize); // Smoothed histogram 1425 if (psTraceGetLevel( __func__) >= 8) {1425 if (psTraceGetLevel("psLib.math") >= 8) { 1426 1426 PS_VECTOR_PRINT_F32(smoothed); 1427 1427 } … … 1496 1496 x->data[j] = ordinate; 1497 1497 } 1498 if (psTraceGetLevel( __func__) >= 8) {1498 if (psTraceGetLevel("psLib.math") >= 8) { 1499 1499 // XXX: Print the x array somehow. 1500 1500 PS_VECTOR_PRINT_F32(y); … … 1525 1525 params->data.F32[0] = stats->robustMedian; 1526 1526 params->data.F32[1] = sigma; 1527 if (psTraceGetLevel( __func__) >= 8) {1527 if (psTraceGetLevel("psLib.math") >= 8) { 1528 1528 PS_VECTOR_PRINT_F32(params); 1529 1529 PS_VECTOR_PRINT_F32(y); … … 1540 1540 return false; 1541 1541 } 1542 if (psTraceGetLevel( __func__) >= 8) {1542 if (psTraceGetLevel("psLib.math") >= 8) { 1543 1543 PS_VECTOR_PRINT_F32(params); 1544 1544 }
Note:
See TracChangeset
for help on using the changeset viewer.
