Changeset 14723 for branches/eam_branch_20070830/psLib/src/math/psStats.c
- Timestamp:
- Sep 1, 2007, 4:03:58 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20070830/psLib/src/math/psStats.c
r14440 r14723 13 13 * use ->min and ->max (PS_STAT_USE_RANGE) 14 14 * 15 * @version $Revision: 1.215 $ $Name: not supported by cvs2svn $16 * @date $Date: 2007-0 8-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 $ 17 17 * 18 18 * Copyright 2006 IfA, University of Hawaii … … 1748 1748 psStats *stats = p_psAlloc(file, lineno, func, sizeof(psStats)); 1749 1749 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 1766 void psStatsInit(psStats *stats) 1767 { 1750 1768 stats->sampleMean = NAN; 1751 1769 stats->sampleMedian = NAN; … … 1766 1784 stats->clippedStdev = NAN; 1767 1785 stats->clippedNvalues = -1; // XXX: This is never used 1768 stats->clipSigma = 3.0;1769 stats->clipIter = 3;1770 1786 stats->min = NAN; 1771 1787 stats->max = NAN; 1772 1788 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; 1778 1790 } 1779 1791
Note:
See TracChangeset
for help on using the changeset viewer.
