Changeset 1879 for trunk/psLib/src/math/psStats.c
- Timestamp:
- Sep 24, 2004, 10:08:22 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psStats.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psStats.c
r1846 r1879 9 9 * @author George Gusciora, MHPCC 10 10 * 11 * @version $Revision: 1.5 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-09-2 2 01:30:21$11 * @version $Revision: 1.58 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-09-24 20:08:22 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 23 23 24 24 /*****************************************************************************/ 25 26 25 /* INCLUDE FILES */ 27 28 26 /*****************************************************************************/ 29 27 #include "psMemory.h" … … 38 36 39 37 /*****************************************************************************/ 40 41 38 /* DEFINE STATEMENTS */ 42 43 39 /*****************************************************************************/ 44 40 // will use robust statistical methods. … … 88 84 89 85 /*****************************************************************************/ 90 91 86 /* TYPE DEFINITIONS */ 92 93 87 /*****************************************************************************/ 94 88 95 89 /*****************************************************************************/ 96 97 90 /* GLOBAL VARIABLES */ 98 99 91 /*****************************************************************************/ 100 92 … … 102 94 103 95 /*****************************************************************************/ 104 105 96 /* FILE STATIC VARIABLES */ 106 107 97 /*****************************************************************************/ 108 98 … … 110 100 111 101 /*****************************************************************************/ 112 113 102 /* FUNCTION IMPLEMENTATION - LOCAL */ 114 115 103 /*****************************************************************************/ 116 104 … … 471 459 // regardless of the vector size. 472 460 /* 473 * if (myVector->n > stats->sampleLimit) { psAbort(__func__, "Robust Statistic Algorithms have not yet474 * been defined or implemented.");475 *476 461 * // Calculate the robust quartiles. stats2 = psStatsAlloc(PS_STAT_ROBUST_MEDIAN); 477 462 * p_psVectorRobustStats(myVector, maskVector, maskVal, stats2); … … 1525 1510 newStruct->sampleUQ = NAN; 1526 1511 newStruct->sampleLQ = NAN; 1527 newStruct->sampleLimit = 30000;1528 1512 newStruct->robustMean = NAN; 1529 1513 newStruct->robustMedian = NAN; … … 1780 1764 algorithms stablize, we will then macro everything and put type support in 1781 1765 the various stat functions. 1766 1767 XXX: Should the default data type be F64? Since we are buying Athlons... 1782 1768 *****************************************************************************/ 1783 1769 psVector* p_psConvertToF32(psStats* stats, psVector* in, psVector* mask, unsigned int maskVal) … … 1826 1812 macro-ize everything and add PS_TYPE_U16 and PS_TYPE_F64. 1827 1813 *****************************************************************************/ 1828 psStats* psVectorStats(psStats* stats, psVector* in, psVector* mask, unsigned int maskVal) 1814 psStats* psVectorStats(psStats* stats, 1815 psVector* in, 1816 psVector* mask, 1817 unsigned int maskVal) 1829 1818 { 1830 1819 psVector* inF32;
Note:
See TracChangeset
for help on using the changeset viewer.
