IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 249


Ignore:
Timestamp:
Mar 15, 2004, 6:16:41 PM (22 years ago)
Author:
Paul Price
Message:

Altered psStats content. Other minor changes.

File:
1 edited

Legend:

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

    r247 r249  
    99/** statistics which may be calculated */
    1010typedef 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
    3437} psStatsOptions;                         
    3538
     
    3740typedef struct {
    3841    double sampleMean;                  //<! formal mean of sample
    39     double sampleMeanError;             //<! error on formal mean
    4042    double sampleMedian;                //<! formal median of sample
    41     double sampleMedianError;           //<! error on formal median
     43    double sampleMode;                  //!< Formal mode of sample
    4244    double sampleStdev;                 //<! standard deviation of sample
    4345    double sampleUQ;                    //<! upper quartile of sample
     
    4951    double robustMedianError;           //<! error on robust median
    5052    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
    5156    double robustStdev;                 //<! robust standard deviation of array
    5257    double robustUQ;                    //<! robust upper quartile
     
    5560    double clippedMeanError;            //<! error on clipped mean
    5661    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
    5865    double min;                         //<! minimum data value in array
    5966    double max;                         //<! maximum data value in array
     
    7077             unsigned int maskVal,      //!< Only mask elements with one of these bits set in maskArray
    7178             psStats *stats             //!< stats structure defines stats to be calculated and how
    72 );
     79    );
    7380
    7481/***********************************************************************************************************/
     
    8693psHistogram *
    8794psHistogramAlloc(float lower,           //!< Lower limit for the bins
    88               float upper,             //!< Upper limit for the bins
    89               float size               //!< Size of the bins
     95                float upper,           //!< Upper limit for the bins
     96                float size             //!< Size of the bins
    9097    );
    9198
     
    93100psHistogram *
    94101psHistogramAllocGeneric(const psFloatArray *restrict lower, //!< Lower bounds for the bins
    95                       const psFloatArray *restrict upper, //!< Upper bounds for the bins
    96                       float minVal,     //!< Minimum value
    97                       float maxVal      //!< Maximum value
     102                        const psFloatArray *restrict upper, //!< Upper bounds for the bins
     103                        float minVal,   //!< Minimum value
     104                        float maxVal    //!< Maximum value
    98105    );
    99106
Note: See TracChangeset for help on using the changeset viewer.