IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 4, 2005, 10:51:20 AM (21 years ago)
Author:
gusciora
Message:

...

File:
1 edited

Legend:

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

    r3355 r3374  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.117 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-03-01 22:21:34 $
     11 *  @version $Revision: 1.118 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-03-04 20:51:20 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    10061006 
    10071007XXX: Use static vectors for tmpMask.
     1008 
     1009XXX: This has not been tested.
    10081010 *****************************************************************************/
    10091011psS32 p_psVectorClippedStats(const psVector* myVector,
     
    10161018    psF32 clippedStdev = 0.0;   // self-explanatory
    10171019    psVector* tmpMask = NULL;   // Temporary vector for masks during iterations.
    1018     psStats *statsTmp = NULL;   // Temporary psStats struct.
     1020    static psStats *statsTmp = NULL;   // Temporary psStats struct.
    10191021    psS32 rc = 0;               // Return code.
    10201022
     
    10401042    // However, we do no want to modify the original mask vector.
    10411043    tmpMask = psVectorAlloc(myVector->n, PS_TYPE_U8);
     1044    PS_VECTOR_SET_U8(tmpMask, 0);
    10421045
    10431046    // If we were called with a mask vector, then initialize the temporary
     
    10681071
    10691072    // 3. Use the sample median as the first estimator of the mean X.
    1070     clippedMean = statsTmp->sampleMean;
     1073    clippedMean = statsTmp->sampleMedian;
    10711074
    10721075    // 4. Use the sample stdev as the first estimator of the mean stdev.
Note: See TracChangeset for help on using the changeset viewer.