Changeset 1582
- Timestamp:
- Aug 18, 2004, 4:25:42 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psStats.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psStats.h
r977 r1582 24 24 PS_STAT_USE_RANGE = 0x002000, 25 25 PS_STAT_USE_BINSIZE = 0x004000, 26 PS_STAT_ROBUST_FOR_SAMPLE = 0x00800027 26 } psStatsOptions; 28 27 … … 34 33 double sampleUQ; ///< upper quartile of sample 35 34 double sampleLQ; ///< lower quartile of sample 36 double sampleLimit; ///< Number of datapoints to37 35 double robustMean; ///< robust mean of data 38 36 double robustMedian; ///< robust median of data … … 58 56 psStats * 59 57 psVectorStats(psStats *stats, ///< stats structure defines stats to be calculated, how and result 60 const psVector *restrict myArray, ///< Array to be analysed 61 const psVector *restrict maskArray, ///< Ignore elements where (maskArray & maskVal) != 0 62 ///< May be NULL 63 unsigned int maskVal) ///< Only mask elements with one of these bits set in maskArray 58 const psVector *in, ///< Array to be analysed 59 const psVector *mask, ///< Ignore elements where (maskArray & maskVal) != 0. May be NULL 60 unsigned int maskVal) ///< Only mask elements with one of these bits set in maskArray 64 61 ; 65 62 … … 69 66 ; 70 67 71 /** Destructor */72 void73 psStatsFree(psStats *restrict stats) ///< Stats structure to destroy74 ;75 76 68 /***********************************************************************************************************/ 77 69 78 70 /** Histograms */ 79 71 typedef struct { 80 const psVector * restrict bounds;///< Bounds for the bins72 const psVector *bounds; ///< Bounds for the bins 81 73 psVector *nums; ///< Number in each of the bins 82 74 int minNum, maxNum; ///< Number below the minimum and above the maximum 83 intuniform; ///< Is it a uniform distribution?75 bool uniform; ///< Is it a uniform distribution? 84 76 } psHistogram; 85 77 … … 93 85 /** Generic constructor \ingroup MathGroup */ 94 86 psHistogram * 95 psHistogramAllocGeneric(const psVector * restrictbounds) ///< Bounds for the bins87 psHistogramAllocGeneric(const psVector *bounds) ///< Bounds for the bins 96 88 ; 97 98 /** Destructor \ingroup MathGroup **/99 void100 psHistogramFree(psHistogram *restrict myHist) ///< Histogram to destroy101 ;102 103 89 104 90 /** Calculate a histogram \ingroup MathGroup **/ 105 91 psHistogram * 106 psHistogramVector(psHistogram *restrict myHist, ///< Histogram data 107 const psVector *restrict myArray) ///< Array to analyse 108 ; 92 psVectorHistogram(psHistogram *out, ///< Input and output histogram 93 const psVector *in ///< Array to analyse 94 const psVector *mask, ///< Ignore elements where (maskArray & maskVal) != 0. May be NULL 95 unsigned int maskVal ///< Only mask elements with one of these bits set in maskArray 96 ); 109 97 110 98 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
