IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 16, 2005, 12:51:04 PM (21 years ago)
Author:
magnier
Message:

added statsTmp init for re-used static struct (p_psVectorClippedStats)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_rel8_b0/psLib/src/math/psStats.c

    r5116 r5527  
    1717*
    1818*
    19 *  @version $Revision: 1.149 $ $Name: not supported by cvs2svn $
    20 *  @date $Date: 2005-09-24 00:46:45 $
     19*  @version $Revision: 1.149.4.1 $ $Name: not supported by cvs2svn $
     20*  @date $Date: 2005-11-16 22:51:04 $
    2121*
    2222*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    11451145        statsTmp = psStatsAlloc(PS_STAT_SAMPLE_MEAN);
    11461146        p_psMemSetPersistent(statsTmp, true);
     1147    } else {
     1148        // XXX EAM : initialize structure if already allocated
     1149        statsTmp->sampleMean = NAN;
     1150        statsTmp->sampleMedian = NAN;
     1151        statsTmp->sampleStdev = NAN;
     1152        statsTmp->sampleUQ = NAN;
     1153        statsTmp->sampleLQ = NAN;
     1154        statsTmp->robustMean = NAN;
     1155        statsTmp->robustMedian = NAN;
     1156        statsTmp->robustMode = NAN;
     1157        statsTmp->robustStdev = NAN;
     1158        statsTmp->robustUQ = NAN;
     1159        statsTmp->robustLQ = NAN;
     1160        statsTmp->robustN50 = -1;            // XXX: This is never used
     1161        statsTmp->robustNfit = -1;
     1162        statsTmp->clippedMean = NAN;
     1163        statsTmp->clippedStdev = NAN;
     1164        statsTmp->clippedNvalues = -1;     // XXX: This is never used
     1165        statsTmp->clipSigma = 3.0;
     1166        statsTmp->clipIter = 3;
     1167        statsTmp->min = NAN;
     1168        statsTmp->max = NAN;
     1169        statsTmp->binsize = NAN;          // XXX: This is never used
    11471170    }
    11481171
Note: See TracChangeset for help on using the changeset viewer.