Changeset 4540 for trunk/psLib/src/math/psStats.h
- Timestamp:
- Jul 12, 2005, 9:12:01 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psStats.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psStats.h
r4409 r4540 14 14 * @author GLG, MHPCC 15 15 * 16 * @version $Revision: 1.4 5$ $Name: not supported by cvs2svn $17 * @date $Date: 2005-0 6-28 20:17:52$16 * @version $Revision: 1.46 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2005-07-12 19:12:01 $ 18 18 * 19 19 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 52 52 PS_STAT_USE_RANGE = 0x002000, ///< Range 53 53 PS_STAT_USE_BINSIZE = 0x004000, ///< Binsize 54 PS_STAT_ROBUST_FOR_SAMPLE = 0x008000 ///< Robust for sample54 // PS_STAT_ROBUST_FOR_SAMPLE = 0x008000 ///< Robust for sample 55 55 } psStatsOptions; 56 56 … … 60 60 typedef struct 61 61 { 62 psF64 sampleMean;///< formal mean of sample63 psF64 sampleMedian;///< formal median of sample64 psF64 sampleStdev;///< standard deviation of sample65 psF64 sampleUQ;///< upper quartile of sample66 psF64 sampleLQ;///< lower quartile of sample67 psF64 robustMean;///< robust mean of array68 psF64 robustMedian;///< robust median of array69 psF64 robustMode;///< Robust mode of array70 psF64 robustStdev;///< robust standard deviation of array71 psF64 robustUQ;///< robust upper quartile72 psF64 robustLQ;///< robust lower quartile73 psS32 robustN50;///< Number of points in Gaussian fit. XXX: This is currently never set.74 psS32 robustNfit;///< The number of points between the quartiles.75 psF64 clippedMean;///< Nsigma clipped mean76 psF64 clippedStdev;///< standard deviation after clipping77 psS32 clippedNvalues;///< Number of data points used for clipped mean: This value is never used.78 psF64 clipSigma;///< Nsigma used for clipping; user input79 psS32 clipIter;///< Number of clipping iterations; user input80 psF64 min;///< minimum data value in array81 psF64 max;///< maximum data value in array82 psF64 binsize;///< binsize for robust fit (input/ouput)83 psStatsOptions options; ///< bitmask of calculated values62 double sampleMean; ///< formal mean of sample 63 double sampleMedian; ///< formal median of sample 64 double sampleStdev; ///< standard deviation of sample 65 double sampleUQ; ///< upper quartile of sample 66 double sampleLQ; ///< lower quartile of sample 67 double robustMean; ///< robust mean of array 68 double robustMedian; ///< robust median of array 69 double robustMode; ///< Robust mode of array 70 double robustStdev; ///< robust standard deviation of array 71 double robustUQ; ///< robust upper quartile 72 double robustLQ; ///< robust lower quartile 73 int robustN50; ///< Number of points in Gaussian fit. XXX: This is currently never set. 74 int robustNfit; ///< The number of points between the quartiles. 75 double clippedMean; ///< Nsigma clipped mean 76 double clippedStdev; ///< standard deviation after clipping 77 int clippedNvalues; ///< Number of data points used for clipped mean: This value is never used. 78 double clipSigma; ///< Nsigma used for clipping; user input 79 int clipIter; ///< Number of clipping iterations; user input 80 double min; ///< minimum data value in array 81 double max; ///< maximum data value in array 82 double binsize; ///< binsize for robust fit (input/ouput) 83 psStatsOptions options; ///< bitmask of calculated values 84 84 } 85 85 psStats; … … 90 90 */ 91 91 psStats* psVectorStats( 92 psStats* stats, ///< stats structure defines stats to be calculated and how93 const psVector* in, ///< Vector to be analysed.94 const psVector* errors, ///< Errors.95 const psVector* mask, ///< Ignore elements where (maskVector & maskVal) != 0: must be INT or NULL96 psMaskType maskVal ///< Only mask elements with one of these bits set in maskVector92 psStats* stats, ///< stats structure defines stats to be calculated and how 93 const psVector* in, ///< Vector to be analysed. 94 const psVector* errors, ///< Errors. 95 const psVector* mask, ///< Ignore elements where (maskVector & maskVal) != 0: must be INT or NULL 96 psMaskType maskVal ///< Only mask elements with one of these bits set in maskVector 97 97 ); 98 98 … … 121 121 typedef struct 122 122 { 123 psVector* bounds;///< Bounds for the bins (type F32)123 const psVector* bounds; ///< Bounds for the bins (type F32) 124 124 psVector* nums; ///< Number in each of the bins (INT) 125 psS32 minNum;///< Number below the minimum126 psS32 maxNum;///< Number above the maximum127 psBool uniform;///< Is it a uniform distribution?125 int minNum; ///< Number below the minimum 126 int maxNum; ///< Number above the maximum 127 bool uniform; ///< Is it a uniform distribution? 128 128 } 129 129 psHistogram;
Note:
See TracChangeset
for help on using the changeset viewer.
