Changeset 4138 for trunk/psLib/src/dataManip/psStats.h
- Timestamp:
- Jun 7, 2005, 1:11:54 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/dataManip/psStats.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psStats.h
r3547 r4138 1 2 1 /** @file psStats.h 3 2 * \brief basic statistical operations 4 3 * @ingroup Stats 5 4 * 6 xd* This file will hold the definition of the histogram and stats data5 * This file will hold the definition of the histogram and stats data 7 6 * structures. It also contains prototypes for procedures which operate 8 7 * on those data structures. 9 8 * 10 * @author George Gusciora, MHPCC 9 * XXX: The following stats members are never used, or set in this code. 10 * stats->robustN50 11 * stats->clippedNvalues 12 * stats->binsize 11 13 * 12 * @version $Revision: 1.40 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-03-29 22:34:59 $ 14 * @author GLG, MHPCC 15 * 16 * @version $Revision: 1.41 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2005-06-07 23:11:54 $ 14 18 * 15 19 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 67 71 psF64 robustUQ; ///< robust upper quartile 68 72 psF64 robustLQ; ///< robust lower quartile 69 psS32 robustN50; ///<70 psS32 robustNfit; ///<73 psS32 robustN50; ///< Number of points in Gaussian fit. XXX: This is currently never set. 74 psS32 robustNfit; ///< The number of points between the quartiles. 71 75 psF64 clippedMean; ///< Nsigma clipped mean 72 76 psF64 clippedStdev; ///< standard deviation after clipping 73 psS32 clippedNvalues; ///< ???77 psS32 clippedNvalues; ///< Number of data points used for clipped mean: This value is never used. 74 78 psF64 clipSigma; ///< Nsigma used for clipping; user input 75 psS32 clipIter; ///< Number of clipping iterations; user input79 psS32 clipIter; ///< Number of clipping iterations; user input 76 80 psF64 min; ///< minimum data value in array 77 81 psF64 max; ///< maximum data value in array 78 psF64 binsize; ///< 79 psStatsOptions options; ///< bitmask of calculated values82 psF64 binsize; ///< binsize for robust fit (input/ouput) 83 psStatsOptions options; ///< bitmask of calculated values 80 84 } 81 85 psStats; … … 86 90 */ 87 91 psStats* psVectorStats( 88 psStats* stats, ///< stats structure defines stats to be calculated and how92 psStats* stats, ///< stats structure defines stats to be calculated and how 89 93 const psVector* in, ///< Vector to be analysed. 90 94 const psVector* errors, ///< Errors. 91 95 const psVector* mask, ///< Ignore elements where (maskVector & maskVal) != 0: must be INT or NULL 92 psU32 maskVal ///< Only mask elements with one of these bits set in maskVector96 psU32 maskVal ///< Only mask elements with one of these bits set in maskVector 93 97 ); 94 98 … … 119 123 psVector* bounds; ///< Bounds for the bins (type F32) 120 124 psVector* nums; ///< Number in each of the bins (INT) 121 psS32 minNum; ///< Number below the minimum122 psS32 maxNum; ///< Number above the maximum123 psBool uniform; ///< Is it a uniform distribution?125 psS32 minNum; ///< Number below the minimum 126 psS32 maxNum; ///< Number above the maximum 127 psBool uniform; ///< Is it a uniform distribution? 124 128 } 125 129 psHistogram; … … 134 138 psF32 lower, ///< Lower limit for the bins 135 139 psF32 upper, ///< Upper limit for the bins 136 psS32 n ///< Number of bins140 psS32 n ///< Number of bins 137 141 ); 138 142 … … 165 169 * 166 170 * @return psBool If more than one statistic result is set in stats->options, 167 * false is returned and the value parameter is not set,168 * otherwise true is returned.171 * false is returned and the value parameter is not set, 172 * otherwise true is returned. 169 173 */ 170 174 psBool p_psGetStatValue( 171 const psStats* stats, 172 ///< the statistic struct to operate on 175 const psStats* stats, ///< the statistic struct to operate on 173 176 174 psF64 *value 175 ///< if return is true, this is set to the specified statistic value by stats->options 177 psF64 *value ///< if return is true, this is set to the specified statistic value by stats->options 176 178 ); 177 179 180 // XXX: Create a single, generic, version of the vector normalize function. 181 // XXX: Ask IfA for a public psLib function. 178 182 void p_psNormalizeVectorRangeU8(psVector* myData, psU8 low, psU8 high); 179 183 void p_psNormalizeVectorRangeU16(psVector* myData, psU16 low, psU16 high);
Note:
See TracChangeset
for help on using the changeset viewer.
