Changeset 753 for trunk/archive/pslib/include/psStats.h
- Timestamp:
- May 20, 2004, 6:12:37 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
r671 r753 12 12 PS_STAT_SAMPLE_MEDIAN = 0x000002, 13 13 PS_STAT_SAMPLE_STDEV = 0x000004, 14 PS_STAT_SAMPLE_UQ = 0x000008, 15 PS_STAT_SAMPLE_LQ = 0x000010, 16 PS_STAT_ROBUST_MEAN = 0x000020, 17 PS_STAT_ROBUST_MEAN_NVALUES = 0x000040, 18 PS_STAT_ROBUST_MEDIAN = 0x000080, 19 PS_STAT_ROBUST_MEDIAN_NVALUES = 0x000100, 20 PS_STAT_ROBUST_MODE = 0x000200, 21 PS_STAT_ROBUST_MODE_NVALUES = 0x000400, 22 PS_STAT_ROBUST_STDEV = 0x000800, 23 PS_STAT_ROBUST_UQ = 0x001000, 24 PS_STAT_ROBUST_LQ = 0x002000, 25 PS_STAT_CLIPPED_MEAN = 0x004000, 26 PS_STAT_CLIPPED_MEAN_NVALUES = 0x008000, 27 PS_STAT_CLIPPED_MEAN_NSIGMA = 0x010000, 28 PS_STAT_CLIPPED_STDEV = 0x020000, 29 PS_STAT_MAX = 0x040000, 30 PS_STAT_MIN = 0x080000, 31 PS_STAT_NVALUES = 0x100000 14 PS_STAT_SAMPLE_QUARTILE = 0x000008, 15 PS_STAT_ROBUST_MEAN = 0x000010, 16 PS_STAT_ROBUST_MEDIAN = 0x000020, 17 PS_STAT_ROBUST_MODE = 0x000040, 18 PS_STAT_ROBUST_STDEV = 0x000080, 19 PS_STAT_ROBUST_QUARTILE = 0x000100, 20 PS_STAT_CLIPPED_MEAN = 0x000200, 21 PS_STAT_CLIPPED_STDEV = 0x000400, 22 PS_STAT_MAX = 0x000800, 23 PS_STAT_MIN = 0x001000, 24 PS_STAT_USE_RANGE = 0x002000, 25 PS_STAT_USE_BINSIZE = 0x004000, 26 PS_STAT_ROBUST_FOR_SAMPLE = 0x008000 32 27 } psStatsOptions; 33 28 34 29 /** generic statistics structure */ 35 30 typedef struct { 36 double sampleMean; ///< formal mean of sample37 double sampleMedian; ///< formal median of sample38 double sampleStdev; ///< standard deviation of sample39 double sampleUQ; ///< upper quartile of sample40 double sampleLQ; ///< lower quartile of sample41 double robustMean; ///< robust mean of data42 int robustMeanNvalues; ///< number of measurements used for robust mean43 double robustMedian; ///< robust median of data44 int robustMedianNvalues; ///< number of measurements used for robust median45 double robust Mode; ///< Robust modeof data46 int robustModeNvalues; ///< Number of measurements used for robust mode47 double robust Stdev; ///< robust standard deviation of data48 double robustUQ; ///< robust upper quartile49 double robustLQ; ///< robust lower quartile50 double clippedMean; ///< Nsigma clipped mean51 int clippedMeanNvalues; ///< number of data points used for clipped mean52 double clippedStdev; ///< standard deviation after clipping53 double clipSigma; ///< Nsigma used for clipping; user input54 int clipIter; ///< Number of clipping iterations; user input55 double min; ///< minimum data value in data56 double max; ///< maximum data value in data57 int nValues; ///< number of data values in data58 psStatsOptions options; ///< bitmask of calculated values31 double sampleMean; ///< formal mean of sample 32 double sampleMedian; ///< formal median of sample 33 double sampleStdev; ///< standard deviation of sample 34 double sampleUQ; ///< upper quartile of sample 35 double sampleLQ; ///< lower quartile of sample 36 double sampleLimit; ///< Number of datapoints to 37 double robustMean; ///< robust mean of data 38 double robustMedian; ///< robust median of data 39 double robustMode; ///< Robust mode of data 40 double robustStdev; ///< robust standard deviation of data 41 double robustUQ; ///< robust upper quartile 42 double robustLQ; ///< robust lower quartile 43 int robustN50; ///< Number of points UQ-LQ 44 int robustNfit; ///< Number of points in Gauss. fit 45 double clippedMean; ///< Nsigma clipped mean 46 double clippedStdev; ///< standard deviation after clipping 47 int clippedNvalues; ///< number of data points used for clipped mean 48 double clipSigma; ///< Nsigma used for clipping; user input 49 int clipIter; ///< Number of clipping iterations; user input 50 double min; ///< minimum data value in data; input range 51 double max; ///< maximum data value in data; input range 52 double binsize; ///< binsize for robust fit (input/output) 53 psStatsOptions options; ///< bitmask of calculated values 59 54 } psStats; 60 55 … … 85 80 const psVector *restrict bounds; ///< Bounds for the bins 86 81 psVector *nums; ///< Number in each of the bins 87 const float minVal, maxVal; ///< Minimum and maximum values88 82 int minNum, maxNum; ///< Number below the minimum and above the maximum 89 83 int uniform; ///< Is it a uniform distribution? … … 99 93 /** Generic constructor \ingroup MathGroup */ 100 94 psHistogram * 101 psHistogramAllocGeneric(const psVector *restrict bounds, ///< Bounds for the bins 102 float minVal, ///< Minimum value 103 float maxVal) ///< Maximum value 95 psHistogramAllocGeneric(const psVector *restrict bounds) ///< Bounds for the bins 104 96 ; 105 97 … … 112 104 /** Calculate a histogram \ingroup MathGroup **/ 113 105 psHistogram * 114 ps VectorHistogram(psHistogram *restrict myHist, ///< Histogram data106 psHistogramVector(psHistogram *restrict myHist, ///< Histogram data 115 107 const psVector *restrict myArray) ///< Array to analyse 116 108 ;
Note:
See TracChangeset
for help on using the changeset viewer.
