IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7999 for trunk/psLib/test


Ignore:
Timestamp:
Jul 27, 2006, 2:44:05 PM (20 years ago)
Author:
Paul Price
Message:

Replacing p_psGetStatValue with two functions: psStatsSingleOption returns the single option that is set, or 0 if no matching option is set; psStatsGetValue returns the value for a requested statistic. Tests seem to pass with the new code.

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

Legend:

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

    r5117 r7999  
    1818    psTraceSetLevel(".", 0);
    1919    psTraceSetLevel("p_psVectorBinDisect", 0);
    20     psTraceSetLevel("p_psGetStatValue", 0);
    2120    psTraceSetLevel("psHistogramAlloc", 0);
    2221    psTraceSetLevel("psHistogramAllocGeneric", 0);
  • trunk/psLib/test/math/tst_psHist01.c

    r5117 r7999  
    1818    psTraceSetLevel(".", 0);
    1919    psTraceSetLevel("p_psVectorBinDisect", 0);
    20     psTraceSetLevel("p_psGetStatValue", 0);
    2120    psTraceSetLevel("psHistogramAlloc", 0);
    2221    psTraceSetLevel("psHistogramAllocGeneric", 0);
  • trunk/psLib/test/math/tst_psHist03.c

    r5117 r7999  
    2020    psTraceSetLevel(".", 0);
    2121    psTraceSetLevel("p_psVectorBinDisect", 0);
    22     psTraceSetLevel("p_psGetStatValue", 0);
    2322    psTraceSetLevel("psHistogramAlloc", 0);
    2423    psTraceSetLevel("psHistogramAllocGeneric", 0);
  • trunk/psLib/test/math/tst_psStats00.c

    r7131 r7999  
    1111*  @author GLG, MHPCC
    1212*
    13 *  @version $Revision: 1.7 $  $Name: not supported by cvs2svn $
    14 *  @date $Date: 2006-05-18 01:20:10 $
     13*  @version $Revision: 1.8 $  $Name: not supported by cvs2svn $
     14*  @date $Date: 2006-07-28 00:44:05 $
    1515*
    1616*  Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    7070    //
    7171    psTraceSetLevel(".", 0);
    72     psTraceSetLevel("p_psGetStatValue", 0);
    7372    psTraceSetLevel("p_psVectorSampleMean", 10);
    7473    psTraceSetLevel("p_psVectorMax", 0);
  • trunk/psLib/test/math/tst_psStats01.c

    r5117 r7999  
    33*  @brief Contains tests for psVectorStats with max calculations.
    44*
    5 *  We extensively test the code with data type PS_TYPE_F32.  If these pass, we 
     5*  We extensively test the code with data type PS_TYPE_F32.  If these pass, we
    66*  do a much simpler test with data types PS_TYPE_U8, PS_TYPE_U16, PS_TYPE_F64.
    77*
     
    1111*  @author GLG, MHPCC
    1212*
    13 *  @version $Revision: 1.3 $  $Name: not supported by cvs2svn $
    14 *  @date $Date: 2005-09-24 01:10:00 $
     13*  @version $Revision: 1.4 $  $Name: not supported by cvs2svn $
     14*  @date $Date: 2006-07-28 00:44:05 $
    1515*
    1616* Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    6060    //
    6161    psTraceSetLevel(".", 0);
    62     psTraceSetLevel("p_psGetStatValue", 0);
    6362    psTraceSetLevel("p_psVectorMax", 0);
    6463    psTraceSetLevel("p_psVectorMin", 0);
  • trunk/psLib/test/math/tst_psStats02.c

    r5117 r7999  
    33*  @brief Contains tests for psVectorStats with min calculations
    44*
    5 *  We extensively test the code with data type PS_TYPE_F32.  If these pass, we 
     5*  We extensively test the code with data type PS_TYPE_F32.  If these pass, we
    66*  do a much simpler test with data types PS_TYPE_U8, PS_TYPE_U16, PS_TYPE_F64.
    77*
     
    1111*  @author GLG, MHPCC
    1212*
    13 *  @version $Revision: 1.3 $  $Name: not supported by cvs2svn $
    14 *  @date $Date: 2005-09-24 01:10:00 $
     13*  @version $Revision: 1.4 $  $Name: not supported by cvs2svn $
     14*  @date $Date: 2006-07-28 00:44:05 $
    1515*
    1616* Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    6060    //
    6161    psTraceSetLevel(".", 0);
    62     psTraceSetLevel("p_psGetStatValue", 0);
    6362    psTraceSetLevel("p_psVectorMax", 0);
    6463    psTraceSetLevel("p_psVectorMin", 0);
  • trunk/psLib/test/math/tst_psStats03.c

    r6226 r7999  
    1919    //
    2020    psTraceSetLevel(".", 0);
    21     psTraceSetLevel("p_psGetStatValue", 0);
    2221    psTraceSetLevel("p_psVectorSampleMean", 0);
    2322    psTraceSetLevel("p_psVectorCheckNonEmpty", 0);
  • trunk/psLib/test/math/tst_psStats06.c

    r5117 r7999  
    2222    //
    2323    psTraceSetLevel(".", 0);
    24     psTraceSetLevel("p_psGetStatValue", 0);
    2524    psTraceSetLevel("p_psVectorSampleMean", 0);
    2625    psTraceSetLevel("p_psVectorMax", 0);
  • trunk/psLib/test/math/tst_psStats07.c

    r7131 r7999  
    462462    psTraceSetLevel(".", TRACE_LEVEL);
    463463    psTraceSetLevel("psGaussian", TRACE_LEVEL);
    464     psTraceSetLevel("p_psGetStatValue", TRACE_LEVEL);
    465464    psTraceSetLevel("p_psVectorMax", TRACE_LEVEL);
    466465    psTraceSetLevel("p_psVectorMin", TRACE_LEVEL);
  • trunk/psLib/test/math/tst_psStats08.c

    r5117 r7999  
    2323    //
    2424    psTraceSetLevel(".", 0);
    25     psTraceSetLevel("p_psGetStatValue", 0);
    2625    psTraceSetLevel("p_psVectorMax", 0);
    2726    psTraceSetLevel("p_psVectorMin", 0);
  • trunk/psLib/test/math/tst_psStats09.c

    r7166 r7999  
    335335    //
    336336    psTraceSetLevel(".", TRACE_LEVEL);
    337     psTraceSetLevel("p_psGetStatValue", TRACE_LEVEL);
    338337    psTraceSetLevel("p_psVectorSampleMean", TRACE_LEVEL);
    339338    psTraceSetLevel("p_psVectorMax", TRACE_LEVEL);
Note: See TracChangeset for help on using the changeset viewer.