IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20514


Ignore:
Timestamp:
Nov 3, 2008, 2:54:12 PM (18 years ago)
Author:
Paul Price
Message:

Catch !string.

File:
1 edited

Legend:

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

    r18876 r20514  
    1313 * use ->min and ->max (PS_STAT_USE_RANGE)
    1414 *
    15  *  @version $Revision: 1.228 $ $Name: not supported by cvs2svn $
    16  *  @date $Date: 2008-08-03 20:54:43 $
     15 *  @version $Revision: 1.229 $ $Name: not supported by cvs2svn $
     16 *  @date $Date: 2008-11-04 00:54:12 $
    1717 *
    1818 *  Copyright 2006 IfA, University of Hawaii
     
    651651        // b) compute new mean and stdev
    652652        // Allocate a psStats structure for calculating the mean and stdev.
    653         // XXX Can we just use this psStats structure to calculate the SAMPLE MEAN and STDEV?
     653        // XXX Can we just use this psStats structure to calculate the SAMPLE MEAN and STDEV?
    654654        // psStats *statsTmp = psStatsAlloc(PS_STAT_SAMPLE_MEAN | PS_STAT_SAMPLE_STDEV);
    655655        // vectorSampleMean(myVector, errors, tmpMask, maskVal, statsTmp);
     
    932932            for (long i = 0 ; i < myVector->n ; i++) {
    933933                if ((myVector->data.F32[i] < medianLo) || (myVector->data.F32[i] > medianHi)) {
    934                     // XXXX is this correct?  is MASK_MARK safe?
     934                    // XXXX is this correct?  is MASK_MARK safe?
    935935                    mask->data.U8[i] |= MASK_MARK;
    936936                    psTrace(TRACE, 6, "Masking element %ld is %f\n", i, myVector->data.F32[i]);
     
    23812381psStatsOptions psStatsOptionFromString(const char *string)
    23822382{
     2383    PS_ASSERT_STRING_NON_EMPTY(string, PS_STAT_NONE);
     2384
    23832385#define READ_STAT(NAME, SYMBOL) \
    23842386    if (strcasecmp(string, NAME) == 0) { \
     
    24192421
    24202422    psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Unable to parse statistic: %s\n", string);
    2421     return 0;
     2423    return PS_STAT_NONE;
    24222424}
    24232425
Note: See TracChangeset for help on using the changeset viewer.