IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 13, 2006, 12:04:58 PM (20 years ago)
Author:
Paul Price
Message:

Fixing psTraceGetLevel to use same convention as for psTrace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psStats.c

    r9538 r9540  
    1616 * use ->min and ->max (PS_STAT_USE_RANGE)
    1717 *
    18  *  @version $Revision: 1.186 $ $Name: not supported by cvs2svn $
    19  *  @date $Date: 2006-10-13 21:13:48 $
     18 *  @version $Revision: 1.187 $ $Name: not supported by cvs2svn $
     19 *  @date $Date: 2006-10-13 22:04:58 $
    2020 *
    2121 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    480480    PS_ASSERT_PTR_NON_NULL(histogram->bounds, NULL);
    481481    PS_ASSERT_PTR_NON_NULL(histogram->nums, NULL);
    482     if (psTraceGetLevel(__func__) >= 8) {
     482    if (psTraceGetLevel("psLib.math") >= 8) {
    483483        PS_VECTOR_PRINT_F32(histogram->nums);
    484484    }
     
    561561    }
    562562
    563     if (psTraceGetLevel(__func__) >= 8) {
     563    if (psTraceGetLevel("psLib.math") >= 8) {
    564564        PS_VECTOR_PRINT_F32(smooth);
    565565    }
     
    705705{
    706706    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"));
    708708
    709709    // Ensure that stats->clipIter is within the proper range.
     
    886886    psTrace("psLib.math", 4, "---- %s() begin ----\n", __func__);
    887887    psTrace("psLib.math", 5, "binNum, yVal is (%d, %f)\n", binNum, yVal);
    888     if (psTraceGetLevel(__func__) >= 8) {
     888    if (psTraceGetLevel("psLib.math") >= 8) {
    889889        PS_VECTOR_PRINT_F32(xVec);
    890890        PS_VECTOR_PRINT_F32(yVec);
     
    10581058{
    10591059    psTrace("psLib.math", 4, "---- %s() begin ----\n", __func__);
    1060     if (psTraceGetLevel(__func__) >= 8) {
     1060    if (psTraceGetLevel("psLib.math") >= 8) {
    10611061        PS_VECTOR_PRINT_F32(myVector);
    10621062    }
     
    11411141        histogram = psHistogramAlloc(min, max, numBins);
    11421142        histogram = psVectorHistogram(histogram, myVector, errors, mask, maskVal);
    1143         if (psTraceGetLevel(__func__) >= 8) {
     1143        if (psTraceGetLevel("psLib.math") >= 8) {
    11441144            PS_VECTOR_PRINT_F32(histogram->bounds);
    11451145            PS_VECTOR_PRINT_F32(histogram->nums);
     
    11521152            cumulative->nums->data.F32[i] = cumulative->nums->data.F32[i-1] + histogram->nums->data.F32[i];
    11531153        }
    1154         if (psTraceGetLevel(__func__) >= 8) {
     1154        if (psTraceGetLevel("psLib.math") >= 8) {
    11551155            PS_VECTOR_PRINT_F32(cumulative->bounds);
    11561156            PS_VECTOR_PRINT_F32(cumulative->nums);
     
    14171417        psHistogram *histogram = psHistogramAlloc(min, max, numBins); // A new histogram (without outliers)
    14181418        histogram = psVectorHistogram(histogram, myVector, errors, mask, maskVal);
    1419         if (psTraceGetLevel(__func__) >= 8) {
     1419        if (psTraceGetLevel("psLib.math") >= 8) {
    14201420            PS_VECTOR_PRINT_F32(histogram->nums);
    14211421        }
     
    14231423        // Smooth the resulting histogram with a Gaussian with sigma_s = 1 bin.
    14241424        psVector *smoothed = vectorSmoothHistGaussian(histogram, newBinSize); // Smoothed histogram
    1425         if (psTraceGetLevel(__func__) >= 8) {
     1425        if (psTraceGetLevel("psLib.math") >= 8) {
    14261426            PS_VECTOR_PRINT_F32(smoothed);
    14271427        }
     
    14961496            x->data[j] = ordinate;
    14971497        }
    1498         if (psTraceGetLevel(__func__) >= 8) {
     1498        if (psTraceGetLevel("psLib.math") >= 8) {
    14991499            // XXX: Print the x array somehow.
    15001500            PS_VECTOR_PRINT_F32(y);
     
    15251525        params->data.F32[0] = stats->robustMedian;
    15261526        params->data.F32[1] = sigma;
    1527         if (psTraceGetLevel(__func__) >= 8) {
     1527        if (psTraceGetLevel("psLib.math") >= 8) {
    15281528            PS_VECTOR_PRINT_F32(params);
    15291529            PS_VECTOR_PRINT_F32(y);
     
    15401540            return false;
    15411541        }
    1542         if (psTraceGetLevel(__func__) >= 8) {
     1542        if (psTraceGetLevel("psLib.math") >= 8) {
    15431543            PS_VECTOR_PRINT_F32(params);
    15441544        }
Note: See TracChangeset for help on using the changeset viewer.