Changeset 1426 for trunk/psLib/src/math/psStats.h
- Timestamp:
- Aug 9, 2004, 12:44:25 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psStats.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psStats.h
r1407 r1426 10 10 * @author George Gusciora, MHPCC 11 11 * 12 * @version $Revision: 1.2 1$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-08-0 7 00:06:06$12 * @version $Revision: 1.22 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-08-09 22:44:25 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 50 50 typedef struct 51 51 { 52 double sampleMean; // /< formal mean of sample53 double sampleMedian; // /< formal median of sample54 double sampleStdev; // /< standard deviation of sample55 double sampleUQ; // /< upper quartile of sample56 double sampleLQ; // /< lower quartile of sample57 double sampleLimit; // /<58 double robustMean; // /< robust mean of array59 double robustMedian; // /< robust median of array60 double robustMode; // /< Robust mode of array61 double robustStdev; // /< robust standard deviation of array62 double robustUQ; // /< robust upper quartile63 double robustLQ; // /< robust lower quartile52 double sampleMean; ///< formal mean of sample 53 double sampleMedian; ///< formal median of sample 54 double sampleStdev; ///< standard deviation of sample 55 double sampleUQ; ///< upper quartile of sample 56 double sampleLQ; ///< lower quartile of sample 57 double sampleLimit; ///< 58 double robustMean; ///< robust mean of array 59 double robustMedian; ///< robust median of array 60 double robustMode; ///< Robust mode of array 61 double robustStdev; ///< robust standard deviation of array 62 double robustUQ; ///< robust upper quartile 63 double robustLQ; ///< robust lower quartile 64 64 double XXX; 65 double robustN50; // /<66 double robustNfit; // /<67 double clippedMean; // /< Nsigma clipped mean68 double clippedStdev; // /< standard deviation after clipping69 double clipSigma; // /< Nsigma used for clipping; user input70 int clipIter; // /< Number of clipping iterations; user input71 double min; // /< minimum data value in array72 double max; // /< maximum data value in array73 double binsize; // /<74 psStatsOptions options; // /< bitmask of calculated values65 double robustN50; ///< 66 double robustNfit; ///< 67 double clippedMean; ///< Nsigma clipped mean 68 double clippedStdev; ///< standard deviation after clipping 69 double clipSigma; ///< Nsigma used for clipping; user input 70 int clipIter; ///< Number of clipping iterations; user input 71 double min; ///< minimum data value in array 72 double max; ///< maximum data value in array 73 double binsize; ///< 74 psStatsOptions options; ///< bitmask of calculated values 75 75 } 76 76 psStats; 77 77 78 78 /** Do Statistics on an array. Returns a status value. \ingroup MathGroup */ 79 psStats *psVectorStats(psStats * stats, // /< stats structure defines stats to be calculated and how80 psVector * in, // /< Vector to be analysed: must be F3281 psVector * mask, // /< Ignore elements where (maskVector & maskVal) != 0: must be INT79 psStats *psVectorStats(psStats * stats, ///< stats structure defines stats to be calculated and how 80 psVector * in, ///< Vector to be analysed: must be F32 81 psVector * mask, ///< Ignore elements where (maskVector & maskVal) != 0: must be INT 82 82 // or NULL 83 unsigned int maskVal // /< Only mask elements with one of these bits set in83 unsigned int maskVal ///< Only mask elements with one of these bits set in 84 84 // maskVector 85 85 ); 86 86 87 87 /** A constructor for the stats structure.*/ 88 psStats *psStatsAlloc(psStatsOptions options); // /< Statistics to measure88 psStats *psStatsAlloc(psStatsOptions options); ///< Statistics to measure 89 89 90 90 /****************************************************************************** … … 95 95 typedef struct 96 96 { 97 psVector *bounds; // /< Bounds for the bins (type F32)98 psVector *nums; // /< Number in each of the bins (INT)99 int minNum; // /< Number below the minimum100 int maxNum; // /< Number above the maximum101 bool uniform; // /< Is it a uniform distribution?97 psVector *bounds; ///< Bounds for the bins (type F32) 98 psVector *nums; ///< Number in each of the bins (INT) 99 int minNum; ///< Number below the minimum 100 int maxNum; ///< Number above the maximum 101 bool uniform; ///< Is it a uniform distribution? 102 102 } 103 103 psHistogram; 104 104 105 105 /** Constructor \ingroup MathGroup */ 106 psHistogram *psHistogramAlloc(float lower, // /< Lower limit for the bins107 float upper, // /< Upper limit for the bins108 int n); // /< Number of bins106 psHistogram *psHistogramAlloc(float lower, ///< Lower limit for the bins 107 float upper, ///< Upper limit for the bins 108 int n); ///< Number of bins 109 109 110 110 /** Generic constructor \ingroup MathGroup */ 111 psHistogram *psHistogramAllocGeneric(const psVector * restrict bounds); // /< Bounds for the bins111 psHistogram *psHistogramAllocGeneric(const psVector * restrict bounds); ///< Bounds for the bins 112 112 113 113 /** Calculate a histogram \ingroup MathGroup **/ 114 psHistogram *psVectorHistogram(psHistogram * out, // /< Histogram data115 const psVector * restrict in, // /< Vector to analyse116 const psVector * restrict mask, // /< Mask dat for input vector117 unsigned int maskVal); // /< Mask value114 psHistogram *psVectorHistogram(psHistogram * out, ///< Histogram data 115 const psVector * restrict in, ///< Vector to analyse 116 const psVector * restrict mask, ///< Mask dat for input vector 117 unsigned int maskVal); ///< Mask value 118 118 119 119 bool p_psGetStatValue(const psStats * stats, double *value);
Note:
See TracChangeset
for help on using the changeset viewer.
