IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6226


Ignore:
Timestamp:
Jan 27, 2006, 10:08:58 AM (20 years ago)
Author:
gusciora
Message:

I added tests for psImageSmooth, modified the psStats stuff and the Min
routines.

Location:
trunk/psLib
Files:
10 added
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageConvolve.c

    r5783 r6226  
    55 *  @author Robert DeSonia, MHPCC
    66 *
    7  *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2005-12-14 00:47:27 $
     7 *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-01-27 20:08:58 $
    99 *
    1010 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    491491                    double  Nsigma)
    492492{
     493    PS_ASSERT_IMAGE_NON_NULL(image, NULL);
    493494
    494495    int Nx, Ny, Npixel, Nrange;
  • trunk/psLib/src/math/psMinimizeLMM.c

    r6204 r6226  
    1010 *  @author EAM, IfA
    1111 *
    12  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-01-26 21:10:22 $
     12 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-01-27 20:08:58 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    277277NOTES: EAM: this is my re-implementation of MinLM
    278278 
     279XXX: Must implement code to handle the constrain->min, ->max, ->delta members.
     280 
    279281XXX: Put the ASSERTS in.
    280282 
     
    283285     will have to convert all F32 input vectors to F64 regardless.  So,
    284286     the F64 port might be.
     287 
    285288  *****************************************************************************/
    286289psBool psMinimizeLMChi2(
     
    288291    psImage *covar,
    289292    psVector *params,
    290     const psVector *paramMask,
     293    psMinConstrain *constrain,
    291294    const psArray *x,
    292295    const psVector *y,
     
    300303    PS_ASSERT_VECTOR_NON_EMPTY(params, false);
    301304    PS_ASSERT_VECTOR_TYPE(params, PS_TYPE_F32, false);
    302     if (paramMask != NULL) {
    303         PS_ASSERT_VECTOR_TYPE(paramMask, PS_TYPE_U8, false);
    304         PS_ASSERT_VECTORS_SIZE_EQUAL(params, paramMask, false);
     305    psVector *paramMask = NULL;
     306    if (constrain != NULL) {
     307        paramMask = constrain->paramMask;
     308        if (paramMask != NULL) {
     309            PS_ASSERT_VECTOR_TYPE(paramMask, PS_TYPE_U8, false);
     310            PS_ASSERT_VECTORS_SIZE_EQUAL(params, paramMask, false);
     311        }
     312        if (constrain->paramMin != NULL) {
     313            psLogMsg(__func__, PS_LOG_WARN, "WARNING: the constrain->paramMin vector is currently ignored.\n");
     314        }
     315        if (constrain->paramMax != NULL) {
     316            psLogMsg(__func__, PS_LOG_WARN, "WARNING: the constrain->paramMax vector is currently ignored.\n");
     317        }
     318        if (constrain->paramDelta != NULL) {
     319            psLogMsg(__func__, PS_LOG_WARN, "WARNING: the constrain->paramDelta vector is currently ignored.\n");
     320        }
    305321    }
    306322    PS_ASSERT_PTR_NON_NULL(x, false);
     
    592608    return( psMemGetDeallocator(ptr) == (psFreeFunc)minimizationFree );
    593609}
     610
     611
     612static void constrainFree(psMinConstrain *tmp)
     613{
     614    // There are no dynamically allocated items
     615}
     616
     617psMinConstrain* psMinConstrainAlloc()
     618{
     619    psMinConstrain *tmp = psAlloc(sizeof(psMinConstrain));
     620    tmp->paramMask = NULL;
     621    tmp->paramMax = NULL;
     622    tmp->paramMin = NULL;
     623    tmp->paramDelta = NULL;
     624
     625    return(tmp);
     626}
     627
     628bool psMemCheckConstrain(psPtr tmp)
     629{
     630    return( psMemGetDeallocator(tmp) == (psFreeFunc)constrainFree );
     631}
  • trunk/psLib/src/math/psMinimizeLMM.h

    r6185 r6226  
    88 *  @author GLG, MHPCC
    99 *
    10  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2006-01-23 20:44:29 $
     10 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2006-01-27 20:08:58 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5252psMinimization;
    5353
     54
     55/** A data structure for minimization routines.
     56 *
     57 * 
     58 */
     59typedef struct
     60{
     61    psVector *paramMask;                ///< valid / invalid parameters
     62    psVector *paramMax;                 ///< max allowed parameters
     63    psVector *paramMin;                 ///< min allowed parameters
     64    psVector *paramDelta;               ///< max allowed param swing
     65}
     66psMinConstrain;
     67
     68psMinConstrain *psMinConstrainAlloc();
     69
    5470#define P_PSMINIMIZATION_SET_MAXITER(m,val) *(int*)&m->maxIter = val
    5571        #define P_PSMINIMIZATION_SET_TOL(m,val) *(float*)&m->tol = val
    56 
    5772
    5873                /** Allocates a psMinimization structure.
     
    97112    psImage *covar,                    ///< Covariance matrix
    98113    psVector *params,                  ///< "Best Guess" for the parameters that minimize func
    99     const psVector *paramMask,         ///< Parameters to be held fixed by the minimizer
     114    psMinConstrain *constrain,         ///< Constraints on the parameters
    100115    const psArray *x,                  ///< Measurement ordinates of multiple vectors
    101116    const psVector *y,                 ///< Measurement coordinates
  • trunk/psLib/src/math/psMinimizePolyFit.c

    r6204 r6226  
    1010 *  @author EAM, IfA
    1111 *
    12  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2006-01-26 21:10:22 $
     12 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-01-27 20:08:58 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    10321032    psF32 minClipSigma;
    10331033    psF32 maxClipSigma;
    1034     if (isnan(stats->max) || isfinite(stats->max)) {
     1034    if (isfinite(stats->max)) {
     1035        maxClipSigma = fabs(stats->max);
     1036    } else {
    10351037        maxClipSigma = fabs(stats->clipSigma);
    1036     } else {
    1037         maxClipSigma = fabs(stats->max);
    1038     }
    1039     if (isnan(stats->min) || isfinite(stats->min)) {
     1038    }
     1039    if (isfinite(stats->min)) {
     1040        minClipSigma = fabs(stats->min);
     1041    } else {
    10401042        minClipSigma = fabs(stats->clipSigma);
    1041     } else {
    1042         minClipSigma = fabs(stats->min);
    10431043    }
    10441044
  • trunk/psLib/test/astro/tst_psSphereOps.c

    r6189 r6226  
    55*  @author d-Rob, MHPCC
    66*
    7 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
    8 *  @date $Date: 2006-01-25 03:02:47 $
     7*  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
     8*  @date $Date: 2006-01-27 20:08:58 $
    99*
    1010*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3232{
    3333    psLogSetLevel( PS_LOG_INFO );
     34    psLogSetFormat("HLNM");
    3435
    3536    return ( ! runTestSuite( stderr, "psSphereOps", tests, argc, argv ) );
  • trunk/psLib/test/astro/verified/tst_psSphereOps.stderr

    r6039 r6226  
    2323\**********************************************************************************/
    2424
    25 <DATE><TIME>|<HOST>|I|testSphereRotApply1
     25<HOST>|I|testSphereRotApply1
    2626    Following should generate an error
    27 <DATE><TIME>|<HOST>|E|psSphereRotApply (FILE:LINENO)
     27<HOST>|E|psSphereRotApply (FILE:LINENO)
    2828    Unallowable operation: transform is NULL.
    29 <DATE><TIME>|<HOST>|I|testSphereRotApply1
     29<HOST>|I|testSphereRotApply1
    3030    Following should generate an error
    31 <DATE><TIME>|<HOST>|E|psSphereRotApply (FILE:LINENO)
     31<HOST>|E|psSphereRotApply (FILE:LINENO)
    3232    Unallowable operation: coord is NULL.
    3333
     
    4949\**********************************************************************************/
    5050
    51 <DATE><TIME>|<HOST>|E|psSphereSetOffset (FILE:LINENO)
     51<HOST>|E|psSphereSetOffset (FILE:LINENO)
    5252    Unallowable operation: position is NULL.
    53 <DATE><TIME>|<HOST>|E|psSphereSetOffset (FILE:LINENO)
     53<HOST>|E|psSphereSetOffset (FILE:LINENO)
    5454    Unallowable operation: offset is NULL.
    55 <DATE><TIME>|<HOST>|E|psSphereGetOffset (FILE:LINENO)
     55<HOST>|E|psSphereGetOffset (FILE:LINENO)
    5656    Unallowable operation: position1 is NULL.
    57 <DATE><TIME>|<HOST>|E|psSphereGetOffset (FILE:LINENO)
     57<HOST>|E|psSphereGetOffset (FILE:LINENO)
    5858    Unallowable operation: position2 is NULL.
    5959
  • trunk/psLib/test/imageops/Makefile.am

    r5303 r6226  
    1212        tst_psImageStats \
    1313        tst_psImageStructManip \
    14     tst_psImageMaskOps
     14        tst_psImageSmooth \
     15        tst_psImageMaskOps
    1516
    1617tst_psImageConvolve_SOURCES =  tst_psImageConvolve.c
     
    2122tst_psImageStats_SOURCES =  tst_psImageStats.c
    2223tst_psImageStructManip_SOURCES =  tst_psImageStructManip.c
     24tst_psImageSmooth_SOURCES =  tst_psImageSmooth.c
    2325tst_psImageMaskOps_SOURCES = tst_psImageMaskOps.c
    2426
  • trunk/psLib/test/math/Makefile.am

    r6216 r6226  
    1919    tst_psMatrixVectorArithmetic03 \
    2020    tst_psMatrixVectorArithmetic04 \
    21     tst_psMinimize05 \
    22     tst_psMinimize06 \
     21    tst_psMinimizePowell \
     22    tst_psMinimizeLMM \
    2323    tst_psStats00 \
    2424    tst_psStats01 \
     
    5858tst_psMatrixVectorArithmetic03_SOURCES =  tst_psMatrixVectorArithmetic03.c
    5959tst_psMatrixVectorArithmetic04_SOURCES =  tst_psMatrixVectorArithmetic04.c
    60 tst_psMinimize05_SOURCES =  tst_psMinimize05.c
    61 tst_psMinimize06_SOURCES =  tst_psMinimize06.c
     60tst_psMinimizePowell_SOURCES = tst_psMinimizePowell.c
     61tst_psMinimizeLMM_SOURCES = tst_psMinimizeLMM.c
    6262tst_psStats00_SOURCES =  tst_psStats00.c
    6363tst_psStats01_SOURCES =  tst_psStats01.c
  • trunk/psLib/test/math/tst_psSpline1D.c

    r6204 r6226  
    1313*  @author GLG, MHPCC
    1414*
    15 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    16 *  @date $Date: 2006-01-26 21:10:22 $
     15*  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     16*  @date $Date: 2006-01-27 20:08:58 $
    1717*
    1818*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    862862}
    863863
    864 
    865 // This code will
  • trunk/psLib/test/math/tst_psStats00.c

    r6215 r6226  
    44*
    55*  We extensively test the code with data type PS_TYPE_F32.  If these pass, we
    6 *  do a much simpler test with data types PS_TYPE_U8, PS_TYPE_U16, PS_TYPE_F64.
     6*  do a much simpler test with data type PS_TYPE_U8, PS_TYPE_U16, PS_TYPE_F64.
    77*
    88*  If the psStats,c code ever changes such that vectors of different type
     
    1111*  @author GLG, MHPCC
    1212*
    13 *  @version $Revision: 1.4 $  $Name: not supported by cvs2svn $
    14 *  @date $Date: 2006-01-26 23:49:11 $
     13*  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
     14*  @date $Date: 2006-01-27 20:08:58 $
    1515*
    1616*  Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    119119    }
    120120
    121     printf("HMMM: myStats->options is (0x%x)\n", myStats->options);
    122121    /*************************************************************************/
    123122    /*  Call psVectorStats() with no vector mask.                    */
  • trunk/psLib/test/math/tst_psStats03.c

    r6215 r6226  
    1818    // We list pertinent psStats.c functions here for debugging ease.
    1919    //
    20     psTraceSetLevel(".", 10);
    21     psTraceSetLevel("p_psGetStatValue", 10);
    22     psTraceSetLevel("p_psVectorSampleMean", 10);
    23     psTraceSetLevel("p_psVectorCheckNonEmpty", 10);
    24     psTraceSetLevel("p_psVectorNValues", 10);
    25     psTraceSetLevel("p_psVectorSampleMedian", 10);
    26     psTraceSetLevel("psStatsAlloc", 10);
    27     psTraceSetLevel("p_psConvertToF32", 10);
    28     psTraceSetLevel("psVectorStats", 10);
     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);
    2929
    3030    psStats *myStats    = NULL;
  • trunk/psLib/test/math/verified/tst_psPolyFit3D.stderr

    r6100 r6226  
    1616    Unallowable operation: psVector mask has incorrect type.
    1717<HOST>|W|psVectorStats
    18     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     18    WARNING: p_psVectorSampleMean() returned an error.
    1919<HOST>|W|psVectorStats
    20     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    21 <HOST>|W|p_psVectorSampleStdev
    22     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     20    WARNING: p_psVectorSampleMean() returned an error.
    2321<HOST>|W|psVectorStats
    24     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     22    WARNING: p_psVectorSampleMean() returned an error.
    2523<HOST>|W|psVectorStats
    26     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    27 <HOST>|W|p_psVectorSampleStdev
    28     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     24    WARNING: p_psVectorSampleMean() returned an error.
    2925<HOST>|W|psVectorStats
    30     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     26    WARNING: p_psVectorSampleMean() returned an error.
    3127<HOST>|W|psVectorStats
    32     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    33 <HOST>|W|p_psVectorSampleStdev
    34     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     28    WARNING: p_psVectorSampleMean() returned an error.
    3529<HOST>|W|psVectorStats
    36     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     30    WARNING: p_psVectorSampleMean() returned an error.
    3731<HOST>|W|psVectorStats
    38     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    39 <HOST>|W|p_psVectorSampleStdev
    40     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     32    WARNING: p_psVectorSampleMean() returned an error.
    4133<HOST>|W|psVectorStats
    42     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     34    WARNING: p_psVectorSampleMean() returned an error.
    4335<HOST>|W|psVectorStats
    44     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    45 <HOST>|W|p_psVectorSampleStdev
    46     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     36    WARNING: p_psVectorSampleMean() returned an error.
    4737<HOST>|W|psVectorStats
    48     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     38    WARNING: p_psVectorSampleMean() returned an error.
    4939<HOST>|W|psVectorStats
    50     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    51 <HOST>|W|p_psVectorSampleStdev
    52     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     40    WARNING: p_psVectorSampleMean() returned an error.
    5341<HOST>|W|psVectorStats
    54     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     42    WARNING: p_psVectorSampleMean() returned an error.
    5543<HOST>|W|psVectorStats
    56     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    57 <HOST>|W|p_psVectorSampleStdev
    58     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     44    WARNING: p_psVectorSampleMean() returned an error.
    5945<HOST>|W|psVectorStats
    60     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     46    WARNING: p_psVectorSampleMean() returned an error.
    6147<HOST>|W|psVectorStats
    62     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    63 <HOST>|W|p_psVectorSampleStdev
    64     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     48    WARNING: p_psVectorSampleMean() returned an error.
    6549<HOST>|W|psVectorStats
    66     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     50    WARNING: p_psVectorSampleMean() returned an error.
    6751<HOST>|W|psVectorStats
    68     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    69 <HOST>|W|p_psVectorSampleStdev
    70     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     52    WARNING: p_psVectorSampleMean() returned an error.
    7153<HOST>|W|psVectorStats
    72     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     54    WARNING: p_psVectorSampleMean() returned an error.
    7355<HOST>|W|psVectorStats
    74     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    75 <HOST>|W|p_psVectorSampleStdev
    76     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     56    WARNING: p_psVectorSampleMean() returned an error.
    7757<HOST>|E|psVectorClipFitPolynomial3D (FILE:LINENO)
    7858    Unallowable operation: psVector x or its data is NULL.
     
    9878    Unallowable operation: psVector mask has incorrect type.
    9979<HOST>|W|psVectorStats
    100     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     80    WARNING: p_psVectorSampleMean() returned an error.
    10181<HOST>|W|psVectorStats
    102     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    103 <HOST>|W|p_psVectorSampleStdev
    104     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     82    WARNING: p_psVectorSampleMean() returned an error.
    10583<HOST>|W|psVectorStats
    106     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     84    WARNING: p_psVectorSampleMean() returned an error.
    10785<HOST>|W|psVectorStats
    108     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    109 <HOST>|W|p_psVectorSampleStdev
    110     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     86    WARNING: p_psVectorSampleMean() returned an error.
    11187<HOST>|W|psVectorStats
    112     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     88    WARNING: p_psVectorSampleMean() returned an error.
    11389<HOST>|W|psVectorStats
    114     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    115 <HOST>|W|p_psVectorSampleStdev
    116     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     90    WARNING: p_psVectorSampleMean() returned an error.
    11791<HOST>|W|psVectorStats
    118     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     92    WARNING: p_psVectorSampleMean() returned an error.
    11993<HOST>|W|psVectorStats
    120     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    121 <HOST>|W|p_psVectorSampleStdev
    122     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     94    WARNING: p_psVectorSampleMean() returned an error.
    12395<HOST>|W|psVectorStats
    124     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     96    WARNING: p_psVectorSampleMean() returned an error.
    12597<HOST>|W|psVectorStats
    126     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    127 <HOST>|W|p_psVectorSampleStdev
    128     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     98    WARNING: p_psVectorSampleMean() returned an error.
    12999<HOST>|W|psVectorStats
    130     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     100    WARNING: p_psVectorSampleMean() returned an error.
    131101<HOST>|W|psVectorStats
    132     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    133 <HOST>|W|p_psVectorSampleStdev
    134     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     102    WARNING: p_psVectorSampleMean() returned an error.
    135103<HOST>|W|psVectorStats
    136     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     104    WARNING: p_psVectorSampleMean() returned an error.
    137105<HOST>|W|psVectorStats
    138     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    139 <HOST>|W|p_psVectorSampleStdev
    140     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     106    WARNING: p_psVectorSampleMean() returned an error.
    141107<HOST>|W|psVectorStats
    142     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     108    WARNING: p_psVectorSampleMean() returned an error.
    143109<HOST>|W|psVectorStats
    144     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    145 <HOST>|W|p_psVectorSampleStdev
    146     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     110    WARNING: p_psVectorSampleMean() returned an error.
    147111<HOST>|W|psVectorStats
    148     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     112    WARNING: p_psVectorSampleMean() returned an error.
    149113<HOST>|W|psVectorStats
    150     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    151 <HOST>|W|p_psVectorSampleStdev
    152     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     114    WARNING: p_psVectorSampleMean() returned an error.
    153115<HOST>|W|psVectorStats
    154     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     116    WARNING: p_psVectorSampleMean() returned an error.
    155117<HOST>|W|psVectorStats
    156     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    157 <HOST>|W|p_psVectorSampleStdev
    158     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     118    WARNING: p_psVectorSampleMean() returned an error.
    159119<HOST>|E|psVectorClipFitPolynomial3D (FILE:LINENO)
    160120    Unallowable operation: psVector x or its data is NULL.
  • trunk/psLib/test/math/verified/tst_psPolyFit4D.stderr

    r6100 r6226  
    2424    Unallowable operation: psVector mask has incorrect type.
    2525<HOST>|W|psVectorStats
    26     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     26    WARNING: p_psVectorSampleMean() returned an error.
    2727<HOST>|W|psVectorStats
    28     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    29 <HOST>|W|p_psVectorSampleStdev
    30     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     28    WARNING: p_psVectorSampleMean() returned an error.
    3129<HOST>|W|psVectorStats
    32     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     30    WARNING: p_psVectorSampleMean() returned an error.
    3331<HOST>|W|psVectorStats
    34     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    35 <HOST>|W|p_psVectorSampleStdev
    36     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     32    WARNING: p_psVectorSampleMean() returned an error.
    3733<HOST>|W|psVectorStats
    38     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     34    WARNING: p_psVectorSampleMean() returned an error.
    3935<HOST>|W|psVectorStats
    40     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    41 <HOST>|W|p_psVectorSampleStdev
    42     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     36    WARNING: p_psVectorSampleMean() returned an error.
    4337<HOST>|W|psVectorStats
    44     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     38    WARNING: p_psVectorSampleMean() returned an error.
    4539<HOST>|W|psVectorStats
    46     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    47 <HOST>|W|p_psVectorSampleStdev
    48     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     40    WARNING: p_psVectorSampleMean() returned an error.
    4941<HOST>|W|psVectorStats
    50     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     42    WARNING: p_psVectorSampleMean() returned an error.
    5143<HOST>|W|psVectorStats
    52     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    53 <HOST>|W|p_psVectorSampleStdev
    54     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     44    WARNING: p_psVectorSampleMean() returned an error.
    5545<HOST>|W|psVectorStats
    56     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     46    WARNING: p_psVectorSampleMean() returned an error.
    5747<HOST>|W|psVectorStats
    58     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    59 <HOST>|W|p_psVectorSampleStdev
    60     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     48    WARNING: p_psVectorSampleMean() returned an error.
    6149<HOST>|W|psVectorStats
    62     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     50    WARNING: p_psVectorSampleMean() returned an error.
    6351<HOST>|W|psVectorStats
    64     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    65 <HOST>|W|p_psVectorSampleStdev
    66     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     52    WARNING: p_psVectorSampleMean() returned an error.
    6753<HOST>|W|psVectorStats
    68     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     54    WARNING: p_psVectorSampleMean() returned an error.
    6955<HOST>|W|psVectorStats
    70     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    71 <HOST>|W|p_psVectorSampleStdev
    72     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     56    WARNING: p_psVectorSampleMean() returned an error.
    7357<HOST>|W|psVectorStats
    74     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     58    WARNING: p_psVectorSampleMean() returned an error.
    7559<HOST>|W|psVectorStats
    76     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    77 <HOST>|W|p_psVectorSampleStdev
    78     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     60    WARNING: p_psVectorSampleMean() returned an error.
    7961<HOST>|W|psVectorStats
    80     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     62    WARNING: p_psVectorSampleMean() returned an error.
    8163<HOST>|W|psVectorStats
    82     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    83 <HOST>|W|p_psVectorSampleStdev
    84     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     64    WARNING: p_psVectorSampleMean() returned an error.
    8565<HOST>|E|psVectorClipFitPolynomial4D (FILE:LINENO)
    8666    Unallowable operation: psVector x or its data is NULL.
     
    11090    Unallowable operation: psVector mask has incorrect type.
    11191<HOST>|W|psVectorStats
    112     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     92    WARNING: p_psVectorSampleMean() returned an error.
    11393<HOST>|W|psVectorStats
    114     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    115 <HOST>|W|p_psVectorSampleStdev
    116     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     94    WARNING: p_psVectorSampleMean() returned an error.
    11795<HOST>|W|psVectorStats
    118     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     96    WARNING: p_psVectorSampleMean() returned an error.
    11997<HOST>|W|psVectorStats
    120     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    121 <HOST>|W|p_psVectorSampleStdev
    122     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     98    WARNING: p_psVectorSampleMean() returned an error.
    12399<HOST>|W|psVectorStats
    124     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     100    WARNING: p_psVectorSampleMean() returned an error.
    125101<HOST>|W|psVectorStats
    126     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    127 <HOST>|W|p_psVectorSampleStdev
    128     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     102    WARNING: p_psVectorSampleMean() returned an error.
    129103<HOST>|W|psVectorStats
    130     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     104    WARNING: p_psVectorSampleMean() returned an error.
    131105<HOST>|W|psVectorStats
    132     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    133 <HOST>|W|p_psVectorSampleStdev
    134     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     106    WARNING: p_psVectorSampleMean() returned an error.
    135107<HOST>|W|psVectorStats
    136     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     108    WARNING: p_psVectorSampleMean() returned an error.
    137109<HOST>|W|psVectorStats
    138     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    139 <HOST>|W|p_psVectorSampleStdev
    140     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     110    WARNING: p_psVectorSampleMean() returned an error.
    141111<HOST>|W|psVectorStats
    142     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     112    WARNING: p_psVectorSampleMean() returned an error.
    143113<HOST>|W|psVectorStats
    144     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    145 <HOST>|W|p_psVectorSampleStdev
    146     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     114    WARNING: p_psVectorSampleMean() returned an error.
    147115<HOST>|W|psVectorStats
    148     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     116    WARNING: p_psVectorSampleMean() returned an error.
    149117<HOST>|W|psVectorStats
    150     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    151 <HOST>|W|p_psVectorSampleStdev
    152     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     118    WARNING: p_psVectorSampleMean() returned an error.
    153119<HOST>|W|psVectorStats
    154     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     120    WARNING: p_psVectorSampleMean() returned an error.
    155121<HOST>|W|psVectorStats
    156     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    157 <HOST>|W|p_psVectorSampleStdev
    158     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     122    WARNING: p_psVectorSampleMean() returned an error.
    159123<HOST>|W|psVectorStats
    160     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     124    WARNING: p_psVectorSampleMean() returned an error.
    161125<HOST>|W|psVectorStats
    162     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    163 <HOST>|W|p_psVectorSampleStdev
    164     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     126    WARNING: p_psVectorSampleMean() returned an error.
    165127<HOST>|W|psVectorStats
    166     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     128    WARNING: p_psVectorSampleMean() returned an error.
    167129<HOST>|W|psVectorStats
    168     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
    169 <HOST>|W|p_psVectorSampleStdev
    170     WARNING: p_psVectorSampleStdev(): p_psVectorSampleMean() reported a NAN mean.
     130    WARNING: p_psVectorSampleMean() returned an error.
    171131<HOST>|E|psVectorClipFitPolynomial4D (FILE:LINENO)
    172132    Unallowable operation: psVector x or its data is NULL.
  • trunk/psLib/test/math/verified/tst_psStats00.stderr

    r4862 r6226  
    88    Following should generate warning message
    99<HOST>|W|psVectorStats
    10     WARNING: psVectorStats(): p_psVectorSampleMean() returned an error.
     10    WARNING: p_psVectorSampleMean() returned an error.
    1111<HOST>|I|testStatsSampleMeanF32
    1212    Following should generate an error message.
  • trunk/psLib/test/math/verified/tst_psStats00.stdout

    r4547 r6226  
     1    ---- p_psVectorSampleMean() begin ----
     2    ---- p_psVectorSampleMean(0) end ----
     3    ---- p_psVectorSampleMean() begin ----
     4    ---- p_psVectorSampleMean(0) end ----
     5    ---- p_psVectorSampleMean() begin ----
     6    ---- p_psVectorSampleMean(0) end ----
     7    ---- p_psVectorSampleMean() begin ----
     8    ---- p_psVectorSampleMean(0) end ----
     9    ---- p_psVectorSampleMean() begin ----
     10    ---- p_psVectorSampleMean(0) end ----
     11    ---- p_psVectorSampleMean() begin ----
     12    ---- p_psVectorSampleMean(0) end ----
     13    ---- p_psVectorSampleMean() begin ----
     14    ---- p_psVectorSampleMean(0) end ----
     15    ---- p_psVectorSampleMean() begin ----
     16    ---- p_psVectorSampleMean(0) end ----
     17    ---- p_psVectorSampleMean() begin ----
     18    ---- p_psVectorSampleMean(0) end ----
     19    ---- p_psVectorSampleMean() begin ----
     20    ---- p_psVectorSampleMean(0) end ----
     21    ---- p_psVectorSampleMean() begin ----
     22    ---- p_psVectorSampleMean(-1) end ----
     23psVectorStats() returned 2.06: expected was 2.06
     24psVectorStats() returned 1.81: expected was 1.81
     25psVectorStats() returned 0.14: expected was 0.14
     26psVectorStats() returned 0.64: expected was 0.64
     27psVectorStats() returned 2.12: expected was 2.12
     28psVectorStats() returned 1.89: expected was 1.89
     29psVectorStats() returned -0.37: expected was -0.37
     30psVectorStats() returned 0.05: expected was 0.05
     31psVectorStats() returned 2.12: expected was 2.12
     32psVectorStats() returned 2.06: expected was 2.06
     33    ---- p_psVectorSampleMean() begin ----
     34    ---- p_psVectorSampleMean(0) end ----
     35psVectorStats() returned 2.00: expected was 2.00
     36    ---- p_psVectorSampleMean() begin ----
     37    ---- p_psVectorSampleMean(0) end ----
     38psVectorStats() returned 8.00: expected was 8.00
     39    ---- p_psVectorSampleMean() begin ----
     40    ---- p_psVectorSampleMean(0) end ----
     41psVectorStats() returned 2.06: expected was 2.06
Note: See TracChangeset for help on using the changeset viewer.