Changeset 671 for trunk/archive/pslib/include/psStats.h
- Timestamp:
- May 13, 2004, 1:16:19 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psStats.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psStats.h
r609 r671 39 39 double sampleUQ; ///< upper quartile of sample 40 40 double sampleLQ; ///< lower quartile of sample 41 double robustMean; ///< robust mean of array41 double robustMean; ///< robust mean of data 42 42 int robustMeanNvalues; ///< number of measurements used for robust mean 43 double robustMedian; ///< robust median of array43 double robustMedian; ///< robust median of data 44 44 int robustMedianNvalues; ///< number of measurements used for robust median 45 double robustMode; ///< Robust mode of array45 double robustMode; ///< Robust mode of data 46 46 int robustModeNvalues; ///< Number of measurements used for robust mode 47 double robustStdev; ///< robust standard deviation of array47 double robustStdev; ///< robust standard deviation of data 48 48 double robustUQ; ///< robust upper quartile 49 49 double robustLQ; ///< robust lower quartile … … 53 53 double clipSigma; ///< Nsigma used for clipping; user input 54 54 int clipIter; ///< Number of clipping iterations; user input 55 double min; ///< minimum data value in array56 double max; ///< maximum data value in array57 int nValues; ///< number of data values in array55 double min; ///< minimum data value in data 56 double max; ///< maximum data value in data 57 int nValues; ///< number of data values in data 58 58 psStatsOptions options; ///< bitmask of calculated values 59 59 } psStats; 60 60 61 61 62 /** Do Statistics on a n array. Returns a status value. \ingroup MathGroup */62 /** Do Statistics on a vector. Returns a status value. \ingroup MathGroup */ 63 63 psStats * 64 ps ArrayStats(psStats *stats, ///< stats structure defines stats to be calculated, how and result65 const ps FloatArray*restrict myArray, ///< Array to be analysed66 const ps IntArray*restrict maskArray, ///< Ignore elements where (maskArray & maskVal) != 067 ///< May be NULL68 unsigned int maskVal ///< Only mask elements with one of these bits set in maskArray69 );64 psVectorStats(psStats *stats, ///< stats structure defines stats to be calculated, how and result 65 const psVector *restrict myArray, ///< Array to be analysed 66 const psVector *restrict maskArray, ///< Ignore elements where (maskArray & maskVal) != 0 67 ///< May be NULL 68 unsigned int maskVal) ///< Only mask elements with one of these bits set in maskArray 69 ; 70 70 71 71 /** Constructor */ 72 72 psStats * 73 psStatsAlloc(psStatsOptions options ///< Statistics to measure74 );73 psStatsAlloc(psStatsOptions options) ///< Statistics to measure 74 ; 75 75 76 76 /** Destructor */ 77 77 void 78 psStatsFree(psStats *restrict stats ///< Stats structure to destroy79 );78 psStatsFree(psStats *restrict stats) ///< Stats structure to destroy 79 ; 80 80 81 81 /***********************************************************************************************************/ … … 83 83 /** Histograms */ 84 84 typedef struct { 85 const ps FloatArray *restrict bounds;///< Bounds for the bins86 ps IntArray*nums; ///< Number in each of the bins85 const psVector *restrict bounds; ///< Bounds for the bins 86 psVector *nums; ///< Number in each of the bins 87 87 const float minVal, maxVal; ///< Minimum and maximum values 88 88 int minNum, maxNum; ///< Number below the minimum and above the maximum … … 94 94 psHistogramAlloc(float lower, ///< Lower limit for the bins 95 95 float upper, ///< Upper limit for the bins 96 int n ///< Number of the bins97 );96 int n) ///< Number of the bins 97 ; 98 98 99 99 /** Generic constructor \ingroup MathGroup */ 100 100 psHistogram * 101 psHistogramAllocGeneric(const ps FloatArray*restrict bounds, ///< Bounds for the bins101 psHistogramAllocGeneric(const psVector *restrict bounds, ///< Bounds for the bins 102 102 float minVal, ///< Minimum value 103 float maxVal ///< Maximum value104 );103 float maxVal) ///< Maximum value 104 ; 105 105 106 106 /** Destructor \ingroup MathGroup **/ 107 107 void 108 psHistogramFree(psHistogram *restrict myHist ///< Histogram to destroy109 );108 psHistogramFree(psHistogram *restrict myHist) ///< Histogram to destroy 109 ; 110 110 111 111 112 112 /** Calculate a histogram \ingroup MathGroup **/ 113 113 psHistogram * 114 ps GetArrayHistogram(psHistogram *restrict myHist, ///< Histogram data115 const psFloatArray *restrict myArray///< Array to analyse116 );114 psVectorHistogram(psHistogram *restrict myHist, ///< Histogram data 115 const psVector *restrict myArray) ///< Array to analyse 116 ; 117 117 118 118 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
