Changeset 249
- Timestamp:
- Mar 15, 2004, 6:16:41 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psStats.h (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psStats.h
r247 r249 9 9 /** statistics which may be calculated */ 10 10 typedef enum { 11 PS_STAT_SAMPLE_MEAN = 0x000001, 12 PS_STAT_SAMPLE_MEAN_ERROR = 0x000002, 13 PS_STAT_SAMPLE_MEDIAN = 0x000004, 14 PS_STAT_SAMPLE_MEDIAN_ERROR = 0x000008, 15 PS_STAT_SAMPLE_STDEV = 0x000010, 16 PS_STAT_SAMPLE_UQ = 0x000020, 17 PS_STAT_SAMPLE_LQ = 0x000040, 18 PS_STAT_ROBUST_MEAN = 0x000080, 19 PS_STAT_ROBUST_MEAN_ERROR = 0x000100, 20 PS_STAT_ROBUST_MEAN_NVALUES = 0x000200, 21 PS_STAT_ROBUST_MEDIAN = 0x000400, 22 PS_STAT_ROBUST_MEDIAN_ERROR = 0x000800, 23 PS_STAT_ROBUST_MEDIAN_NVALUES = 0x001000, 24 PS_STAT_ROBUST_STDEV = 0x002000, 25 PS_STAT_ROBUST_UQ = 0x004000, 26 PS_STAT_ROBUST_LQ = 0x008000, 27 PS_STAT_CLIPPED_MEAN = 0x010000, 28 PS_STAT_CLIPPED_MEAN_ERROR = 0x020000, 29 PS_STAT_CLIPPED_MEAN_NVALUES = 0x040000, 30 PS_STAT_CLIPPED_MEAN_NSIGMA = 0x080000, 31 PS_STAT_MAX = 0x100000, 32 PS_STAT_MIN = 0x200000, 33 PS_STAT_NVALUES = 0x400000 11 PS_STAT_SAMPLE_MEAN = 0x0000001, 12 PS_STAT_SAMPLE_MEDIAN = 0x0000002, 13 PS_STAT_SAMPLE_MODE = 0x0000004, 14 PS_STAT_SAMPLE_STDEV = 0x0000008, 15 PS_STAT_SAMPLE_UQ = 0x0000010, 16 PS_STAT_SAMPLE_LQ = 0x0000020, 17 PS_STAT_ROBUST_MEAN = 0x0000040, 18 PS_STAT_ROBUST_MEAN_ERROR = 0x0000080, 19 PS_STAT_ROBUST_MEAN_NVALUES = 0x0000100, 20 PS_STAT_ROBUST_MEDIAN = 0x0000200, 21 PS_STAT_ROBUST_MEDIAN_ERROR = 0x0000400, 22 PS_STAT_ROBUST_MEDIAN_NVALUES = 0x0000800, 23 PS_STAT_ROBUST_MODE = 0x0001000, 24 PS_STAT_ROBUST_MODE_ERROR = 0x0002000, 25 PS_STAT_ROBUST_MODE_NVALUES = 0x0004000, 26 PS_STAT_ROBUST_STDEV = 0x0008000, 27 PS_STAT_ROBUST_UQ = 0x0010000, 28 PS_STAT_ROBUST_LQ = 0x0020000, 29 PS_STAT_CLIPPED_MEAN = 0x0040000, 30 PS_STAT_CLIPPED_MEAN_ERROR = 0x0080000, 31 PS_STAT_CLIPPED_MEAN_NVALUES = 0x0100000, 32 PS_STAT_CLIPPED_MEAN_NSIGMA = 0x0200000, 33 PS_STAT_CLIPPED_STDEV = 0x0400000, 34 PS_STAT_MAX = 0x0800000, 35 PS_STAT_MIN = 0x1000000, 36 PS_STAT_NVALUES = 0x2000000 34 37 } psStatsOptions; 35 38 … … 37 40 typedef struct { 38 41 double sampleMean; //<! formal mean of sample 39 double sampleMeanError; //<! error on formal mean40 42 double sampleMedian; //<! formal median of sample 41 double sampleM edianError; //<! error on formal median43 double sampleMode; //!< Formal mode of sample 42 44 double sampleStdev; //<! standard deviation of sample 43 45 double sampleUQ; //<! upper quartile of sample … … 49 51 double robustMedianError; //<! error on robust median 50 52 int robustMedianNvalues; //<! number of measurements used for robust median 53 double robustMode; //!< Robust mode of array 54 double robustModeErr; //!< Error in robust mode 55 int robustModeNvalues; //!< Number of measurements used for robust mode 51 56 double robustStdev; //<! robust standard deviation of array 52 57 double robustUQ; //<! robust upper quartile … … 55 60 double clippedMeanError; //<! error on clipped mean 56 61 int clippedMeanNvalues; //<! number of data points used for clipped mean 57 double clippedMeanNsigma; //<! Nsigma clip used for clipped mean 62 double clippedStdev; //!< standard deviation after clipping 63 double clipSigma; //<! Nsigma used for clipping; user input 64 int clipIter; //!< Number of clipping iterations; user input 58 65 double min; //<! minimum data value in array 59 66 double max; //<! maximum data value in array … … 70 77 unsigned int maskVal, //!< Only mask elements with one of these bits set in maskArray 71 78 psStats *stats //!< stats structure defines stats to be calculated and how 72 );79 ); 73 80 74 81 /***********************************************************************************************************/ … … 86 93 psHistogram * 87 94 psHistogramAlloc(float lower, //!< Lower limit for the bins 88 float upper, //!< Upper limit for the bins89 float size //!< Size of the bins95 float upper, //!< Upper limit for the bins 96 float size //!< Size of the bins 90 97 ); 91 98 … … 93 100 psHistogram * 94 101 psHistogramAllocGeneric(const psFloatArray *restrict lower, //!< Lower bounds for the bins 95 const psFloatArray *restrict upper, //!< Upper bounds for the bins96 float minVal, //!< Minimum value97 float maxVal //!< Maximum value102 const psFloatArray *restrict upper, //!< Upper bounds for the bins 103 float minVal, //!< Minimum value 104 float maxVal //!< Maximum value 98 105 ); 99 106
Note:
See TracChangeset
for help on using the changeset viewer.
