IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5117


Ignore:
Timestamp:
Sep 23, 2005, 3:10:00 PM (21 years ago)
Author:
gusciora
Message:

Added moderate trace messages to psStats.c.

Location:
trunk/psLib/test/math
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/math/tst_psHist00.c

    r4859 r5117  
    1313{
    1414    psLogSetFormat("HLNM");
     15    //
     16    // We list pertinent psStats.c functions here for debugging ease.
     17    //
     18    psTraceSetLevel(".", 0);
     19    psTraceSetLevel("p_psVectorBinDisect", 0);
     20    psTraceSetLevel("p_psGetStatValue", 0);
     21    psTraceSetLevel("psHistogramAlloc", 0);
     22    psTraceSetLevel("psHistogramAllocGeneric", 0);
     23    psTraceSetLevel("UpdateHistogramBins", 0);
     24    psTraceSetLevel("psVectorHistogram", 0);
    1525    psHistogram *myHist = NULL;
    1626    psS32 testStatus      = true;
  • trunk/psLib/test/math/tst_psHist01.c

    r4859 r5117  
    1313{
    1414    psLogSetFormat("HLNM");
     15    //
     16    // We list pertinent psStats.c functions here for debugging ease.
     17    //
     18    psTraceSetLevel(".", 0);
     19    psTraceSetLevel("p_psVectorBinDisect", 0);
     20    psTraceSetLevel("p_psGetStatValue", 0);
     21    psTraceSetLevel("psHistogramAlloc", 0);
     22    psTraceSetLevel("psHistogramAllocGeneric", 0);
     23    psTraceSetLevel("UpdateHistogramBins", 0);
     24    psTraceSetLevel("psVectorHistogram", 0);
    1525    psHistogram *myHist = NULL;
    1626    psVector *myBounds  = NULL;
  • trunk/psLib/test/math/tst_psHist03.c

    r4859 r5117  
    1515{
    1616    psLogSetFormat("HLNM");
     17    //
     18    // We list pertinent psStats.c functions here for debugging ease.
     19    //
     20    psTraceSetLevel(".", 0);
     21    psTraceSetLevel("p_psVectorBinDisect", 0);
     22    psTraceSetLevel("p_psGetStatValue", 0);
     23    psTraceSetLevel("psHistogramAlloc", 0);
     24    psTraceSetLevel("psHistogramAllocGeneric", 0);
     25    psTraceSetLevel("UpdateHistogramBins", 0);
     26    psTraceSetLevel("psVectorHistogram", 0);
    1727    psHistogram *myHist = NULL;
    1828    psVector *myBounds  = NULL;
  • trunk/psLib/test/math/tst_psStats00.c

    r4859 r5117  
    1111*  @author GLG, MHPCC
    1212*
    13 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
    14 *  @date $Date: 2005-08-24 01:24:24 $
     13*  @version $Revision: 1.3 $  $Name: not supported by cvs2svn $
     14*  @date $Date: 2005-09-24 01:10:00 $
    1515*
    1616*  Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    6666    psLogSetFormat("HLNM");
    6767    psLogSetLevel(PS_LOG_INFO);
     68    //
     69    // We list pertinent psStats.c functions here for debugging ease.
     70    //
     71    psTraceSetLevel(".", 0);
     72    psTraceSetLevel("p_psGetStatValue", 0);
     73    psTraceSetLevel("p_psVectorSampleMean", 0);
     74    psTraceSetLevel("p_psVectorMax", 0);
     75    psTraceSetLevel("p_psVectorMin", 0);
     76    psTraceSetLevel("p_psVectorNValues", 0);
     77    psTraceSetLevel("p_psNormalizeVectorRange", 0);
     78    psTraceSetLevel("psStatsAlloc", 0);
     79    psTraceSetLevel("p_psConvertToF32", 0);
     80    psTraceSetLevel("psVectorStats", 0);
    6881
    6982    return ( ! runTestSuite(stderr, "psVectorStats",tests,argc,argv) );
  • trunk/psLib/test/math/tst_psStats01.c

    r4859 r5117  
    1111*  @author GLG, MHPCC
    1212*
    13 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
    14 *  @date $Date: 2005-08-24 01:24:24 $
     13*  @version $Revision: 1.3 $  $Name: not supported by cvs2svn $
     14*  @date $Date: 2005-09-24 01:10:00 $
    1515*
    1616* Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    5656    psLogSetFormat("HLNM");
    5757    psLogSetLevel(PS_LOG_INFO);
     58    //
     59    // We list pertinent psStats.c functions here for debugging ease.
     60    //
     61    psTraceSetLevel(".", 0);
     62    psTraceSetLevel("p_psGetStatValue", 0);
     63    psTraceSetLevel("p_psVectorMax", 0);
     64    psTraceSetLevel("p_psVectorMin", 0);
     65    psTraceSetLevel("p_psVectorCheckNonEmpty", 0);
     66    psTraceSetLevel("p_psVectorNValues", 0);
     67    psTraceSetLevel("psStatsAlloc", 0);
     68    psTraceSetLevel("p_psConvertToF32", 0);
     69    psTraceSetLevel("psVectorStats", 0);
    5870
    5971    return ( ! runTestSuite(stderr, "psVectorStats", tests, argc, argv) );
  • trunk/psLib/test/math/tst_psStats02.c

    r4859 r5117  
    1111*  @author GLG, MHPCC
    1212*
    13 *  @version $Revision: 1.2 $  $Name: not supported by cvs2svn $
    14 *  @date $Date: 2005-08-24 01:24:24 $
     13*  @version $Revision: 1.3 $  $Name: not supported by cvs2svn $
     14*  @date $Date: 2005-09-24 01:10:00 $
    1515*
    1616* Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    5656    psLogSetFormat("HLNM");
    5757    psLogSetLevel(PS_LOG_INFO);
     58    //
     59    // We list pertinent psStats.c functions here for debugging ease.
     60    //
     61    psTraceSetLevel(".", 0);
     62    psTraceSetLevel("p_psGetStatValue", 0);
     63    psTraceSetLevel("p_psVectorMax", 0);
     64    psTraceSetLevel("p_psVectorMin", 0);
     65    psTraceSetLevel("p_psVectorCheckNonEmpty", 0);
     66    psTraceSetLevel("p_psVectorNValues", 0);
     67    psTraceSetLevel("p_psNormalizeVectorRange", 0);
     68    psTraceSetLevel("psStatsAlloc", 0);
     69    psTraceSetLevel("p_psConvertToF32", 0);
     70    psTraceSetLevel("psVectorStats", 0);
    5871
    5972    return ( ! runTestSuite(stderr, "psVectorStats", tests, argc, argv) );
  • trunk/psLib/test/math/tst_psStats03.c

    r4859 r5117  
    1515{
    1616    psLogSetFormat("HLNM");
     17    //
     18    // We list pertinent psStats.c functions here for debugging ease.
     19    //
     20    psTraceSetLevel(".", 0);
     21    psTraceSetLevel("p_psGetStatValue", 0);
     22    psTraceSetLevel("p_psVectorSampleMean", 0);
     23    psTraceSetLevel("p_psVectorCheckNonEmpty", 0);
     24    psTraceSetLevel("p_psVectorNValues", 0);
     25    psTraceSetLevel("p_psVectorSampleMedian", 0);
     26    psTraceSetLevel("psStatsAlloc", 0);
     27    psTraceSetLevel("p_psConvertToF32", 0);
     28    psTraceSetLevel("psVectorStats", 0);
     29
    1730    psStats *myStats    = NULL;
    1831    psS32 testStatus      = true;
  • trunk/psLib/test/math/tst_psStats05.c

    r4859 r5117  
    11/*****************************************************************************
    22    This routine must ensure that the psStats structure is correctly
    3     allocated and deallocated by the procedure psArrayStats().
     3    allocated and deallocated by the procedure psStatsAlloc().
     4 
     5    XXX: This should be test 00.
    46 *****************************************************************************/
    57#include <stdio.h>
     
    1113{
    1214    psLogSetFormat("HLNM");
     15    //
     16    // We list pertinent psStats.c functions here for debugging ease.
     17    //
     18    psTraceSetLevel(".", 0);
     19    psTraceSetLevel("psStatsAlloc", 0);
     20
    1321    psStats *myStats    = NULL;
    1422    psS32 testStatus      = true;
  • trunk/psLib/test/math/tst_psStats06.c

    r4859 r5117  
    1818{
    1919    psLogSetFormat("HLNM");
     20    //
     21    // We list pertinent psStats.c functions here for debugging ease.
     22    //
     23    psTraceSetLevel(".", 0);
     24    psTraceSetLevel("p_psGetStatValue", 0);
     25    psTraceSetLevel("p_psVectorSampleMean", 0);
     26    psTraceSetLevel("p_psVectorMax", 0);
     27    psTraceSetLevel("p_psVectorMin", 0);
     28    psTraceSetLevel("p_psVectorCheckNonEmpty", 0);
     29    psTraceSetLevel("p_psVectorNValues", 0);
     30    psTraceSetLevel("p_psVectorSampleStdevOLD", 0);
     31    psTraceSetLevel("p_psVectorSampleStdev", 0);
     32    psTraceSetLevel("psStatsAlloc", 0);
     33    psTraceSetLevel("p_psConvertToF32", 0);
     34    psTraceSetLevel("psVectorStats", 0);
     35
    2036    psStats *myStats    = NULL;
    2137    psS32 testStatus      = true;
  • trunk/psLib/test/math/tst_psStats07.c

    r5116 r5117  
    489489{
    490490    psLogSetFormat("HLNM");
     491    //
     492    // We list pertinent psStats.c functions here for debugging ease.
     493    //
    491494    psTraceSetLevel(".", 0);
    492495    psTraceSetLevel("psGaussian", 0);
     496    psTraceSetLevel("p_psGetStatValue", 0);
     497    psTraceSetLevel("p_psVectorMax", 0);
     498    psTraceSetLevel("p_psVectorMin", 0);
     499    psTraceSetLevel("p_psVectorCheckNonEmpty", 0);
     500    psTraceSetLevel("p_psNormalizeVectorRange", 0);
     501    psTraceSetLevel("p_ps1DPolyMedian", 0);
     502    psTraceSetLevel("fitQuadraticSearchForYThenReturnX", 0);
     503    psTraceSetLevel("PsVectorDup", 0);
     504    psTraceSetLevel("psMinimizeLMChi2Gauss1D", 0);
     505    psTraceSetLevel("LinInterpolate", 0);
     506    psTraceSetLevel("p_psVectorRobustStats", 0);
     507    psTraceSetLevel("psStatsAlloc", 0);
     508    psTraceSetLevel("psHistogramAlloc", 0);
     509    psTraceSetLevel("psHistogramAllocGeneric", 0);
     510    psTraceSetLevel("UpdateHistogramBins", 0);
     511    psTraceSetLevel("psVectorHistogram", 0);
     512    psTraceSetLevel("p_psConvertToF32", 0);
     513    psTraceSetLevel("psVectorStats", 0);
    493514    psBool rc0 = t00();
    494515    psBool rc1 = t01();
     
    500521    }
    501522
    502     return(rc0 & rc1);
     523    return(!(rc0 & rc1));
    503524}
  • trunk/psLib/test/math/tst_psStats08.c

    r4859 r5117  
    1919{
    2020    psLogSetFormat("HLNM");
     21    //
     22    // We list pertinent psStats.c functions here for debugging ease.
     23    //
     24    psTraceSetLevel(".", 0);
     25    psTraceSetLevel("p_psGetStatValue", 0);
     26    psTraceSetLevel("p_psVectorMax", 0);
     27    psTraceSetLevel("p_psVectorMin", 0);
     28    psTraceSetLevel("p_psVectorCheckNonEmpty", 0);
     29    psTraceSetLevel("p_psVectorNValues", 0);
     30    psTraceSetLevel("p_psVectorSampleQuartiles", 0);
     31    psTraceSetLevel("psStatsAlloc", 0);
     32    psTraceSetLevel("p_psConvertToF32", 0);
     33    psTraceSetLevel("psVectorStats", 0);
     34
     35
    2136    psStats *myStats    = NULL;
    2237    psS32 testStatus      = true;
  • trunk/psLib/test/math/tst_psStats09.c

    r4859 r5117  
    2222{
    2323    psLogSetFormat("HLNM");
     24    //
     25    // We list pertinent psStats.c functions here for debugging ease.
     26    //
     27    psTraceSetLevel(".", 0);
     28    psTraceSetLevel("p_psGetStatValue", 0);
     29    psTraceSetLevel("p_psVectorSampleMean", 0);
     30    psTraceSetLevel("p_psVectorMax", 0);
     31    psTraceSetLevel("p_psVectorMin", 0);
     32    psTraceSetLevel("p_psVectorCheckNonEmpty", 0);
     33    psTraceSetLevel("p_psVectorNValues", 0);
     34    psTraceSetLevel("p_psVectorClippedStats", 0);
     35    psTraceSetLevel("p_psNormalizeVectorRange", 0);
     36    psTraceSetLevel("psStatsAlloc", 0);
     37    psTraceSetLevel("p_psConvertToF32", 0);
     38    psTraceSetLevel("psVectorStats", 0);
     39
    2440    psStats *myStats    = NULL;
    2541    psS32 testStatus      = true;
  • trunk/psLib/test/math/verified/tst_psStats07.stderr

    r4547 r5117  
    1 <DATE><TIME>|<HOST>|W|p_psVectorRobustStats
    2     WARNING: the fitted Gaussian has more than 10% error for the stdev.
    3 <DATE><TIME>|<HOST>|W|p_psVectorRobustStats
    4     WARNING: Using the calculated stdev instead of Gaussian-fitted stdev.
    5 <DATE><TIME>|<HOST>|W|p_psVectorRobustStats
    6     WARNING: the fitted Gaussian has more than 10% error for the stdev.
    7 <DATE><TIME>|<HOST>|W|p_psVectorRobustStats
    8     WARNING: Using the calculated stdev instead of Gaussian-fitted stdev.
Note: See TracChangeset for help on using the changeset viewer.