IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 1, 2007, 4:03:58 PM (19 years ago)
Author:
magnier
Message:

updates to the image map tools

File:
1 edited

Legend:

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

    r14440 r14723  
    1313 * use ->min and ->max (PS_STAT_USE_RANGE)
    1414 *
    15  *  @version $Revision: 1.215 $ $Name: not supported by cvs2svn $
    16  *  @date $Date: 2007-08-08 21:31:42 $
     15 *  @version $Revision: 1.215.2.1 $ $Name: not supported by cvs2svn $
     16 *  @date $Date: 2007-09-02 02:03:58 $
    1717 *
    1818 *  Copyright 2006 IfA, University of Hawaii
     
    17481748    psStats *stats = p_psAlloc(file, lineno, func, sizeof(psStats));
    17491749    psMemSetDeallocator(stats, (psFreeFunc)statsFree);
     1750
     1751    // set initial, default values
     1752    psStatsInit (stats);
     1753
     1754    // these values are can be set as desired by the user.  they are not affected by
     1755    // psStatsInit
     1756    stats->clipSigma = 3.0;
     1757    stats->clipIter = 3;
     1758    stats->nSubsample = 100000;
     1759    stats->options = options;
     1760
     1761    psTrace(TRACE, 3, "---- %s() end  ----\n", __func__);
     1762    return stats;
     1763}
     1764
     1765// reset the values which are output, and which may be used from one psStats stage to the next
     1766void psStatsInit(psStats *stats)
     1767{
    17501768    stats->sampleMean = NAN;
    17511769    stats->sampleMedian = NAN;
     
    17661784    stats->clippedStdev = NAN;
    17671785    stats->clippedNvalues = -1;     // XXX: This is never used
    1768     stats->clipSigma = 3.0;
    1769     stats->clipIter = 3;
    17701786    stats->min = NAN;
    17711787    stats->max = NAN;
    17721788    stats->binsize = NAN;
    1773     stats->nSubsample = 100000;
    1774     stats->options = options;
    1775 
    1776     psTrace(TRACE, 3, "---- %s() end  ----\n", __func__);
    1777     return stats;
     1789    return;
    17781790}
    17791791
Note: See TracChangeset for help on using the changeset viewer.