IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 357


Ignore:
Timestamp:
Mar 31, 2004, 10:33:51 PM (22 years ago)
Author:
Paul Price
Message:

Trimmed down the number of stats to be calculated: removed the errors, and the sample mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/include/psStats.h

    r354 r357  
    99/** statistics which may be calculated */
    1010typedef enum {
    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
     11    PS_STAT_SAMPLE_MEAN           = 0x000001,
     12    PS_STAT_SAMPLE_MEDIAN         = 0x000002,
     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
    3732} psStatsOptions;                         
    3833
     
    4136    double sampleMean;                  ///< formal mean of sample
    4237    double sampleMedian;                ///< formal median of sample
    43     double sampleMode;                  ///< Formal mode of sample
    4438    double sampleStdev;                 ///< standard deviation of sample
    4539    double sampleUQ;                    ///< upper quartile of sample
    4640    double sampleLQ;                    ///< lower quartile of sample
    4741    double robustMean;                  ///< robust mean of array
    48     double robustMeanError;             ///< error on robust mean
    4942    int    robustMeanNvalues;           ///< number of measurements used for robust mean
    5043    double robustMedian;                ///< robust median of array
    51     double robustMedianError;           ///< error on robust median
    5244    int    robustMedianNvalues;         ///< number of measurements used for robust median
    5345    double robustMode;                  ///< Robust mode of array
    54     double robustModeErr;               ///< Error in robust mode
    5546    int    robustModeNvalues;           ///< Number of measurements used for robust mode
    5647    double robustStdev;                 ///< robust standard deviation of array
     
    5849    double robustLQ;                    ///< robust lower quartile
    5950    double clippedMean;                 ///< Nsigma clipped mean
    60     double clippedMeanError;            ///< error on clipped mean
    6151    int    clippedMeanNvalues;          ///< number of data points used for clipped mean
    6252    double clippedStdev;                ///< standard deviation after clipping
Note: See TracChangeset for help on using the changeset viewer.