IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 8, 2007, 9:38:17 AM (19 years ago)
Author:
Paul Price
Message:

Adding higher-order statistics, and rearranging the statistics order.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psStats.h

    r13494 r14429  
    88 * @author GLG, MHPCC
    99 *
    10  * @version $Revision: 1.60 $ $Name: not supported by cvs2svn $
    11  * @date $Date: 2007-05-24 02:06:51 $
     10 * @version $Revision: 1.61 $ $Name: not supported by cvs2svn $
     11 * @date $Date: 2007-08-08 19:38:17 $
    1212 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    1313 */
     
    2929typedef enum {
    3030    PS_STAT_NONE            = 0x000000, ///< Empty set
    31     PS_STAT_SAMPLE_MEAN     = 0x000001, ///< Sample Mean
    32     PS_STAT_SAMPLE_MEDIAN   = 0x000002, ///< Sample Median
    33     PS_STAT_SAMPLE_STDEV    = 0x000004, ///< Sample Standard Deviation
    34     PS_STAT_SAMPLE_QUARTILE = 0x000008, ///< Sample Quartile
    35     PS_STAT_ROBUST_MEDIAN   = 0x000010, ///< Robust Median
    36     PS_STAT_ROBUST_STDEV    = 0x000020, ///< Robust Standarad Deviation
    37     PS_STAT_ROBUST_QUARTILE = 0x000040, ///< Robust Quartile
    38     PS_STAT_FITTED_MEAN     = 0x000080, ///< Fitted Mean
    39     PS_STAT_FITTED_STDEV    = 0x000100, ///< Fitted Standard Deviation
    40     PS_STAT_CLIPPED_MEAN    = 0x000200, ///< Clipped Mean
    41     PS_STAT_CLIPPED_STDEV   = 0x000400, ///< Clipped Standard Deviation
    42     PS_STAT_MAX             = 0x000800, ///< Maximum
    43     PS_STAT_MIN             = 0x001000, ///< Minumum
    44     PS_STAT_USE_RANGE       = 0x002000, ///< Range
    45     PS_STAT_USE_BINSIZE     = 0x004000, ///< Binsize
    46     PS_STAT_FITTED_MEAN_V2  = 0x008000, ///< Fitted Mean
    47     PS_STAT_FITTED_STDEV_V2 = 0x010000, ///< Fitted Standard Deviation
    48     PS_STAT_FITTED_MEAN_V3  = 0x020000, ///< Fitted Mean
    49     PS_STAT_FITTED_STDEV_V3 = 0x040000, ///< Fitted Standard Deviation
     31    PS_STAT_MIN             = 0x000001, ///< Maximum
     32    PS_STAT_MAX             = 0x000002, ///< Minumum
     33    PS_STAT_SAMPLE_MEAN     = 0x000004, ///< Sample Mean
     34    PS_STAT_SAMPLE_MEDIAN   = 0x000008, ///< Sample Median
     35    PS_STAT_SAMPLE_STDEV    = 0x000010, ///< Sample Standard Deviation
     36    PS_STAT_SAMPLE_QUARTILE = 0x000020, ///< Sample Quartile
     37    PS_STAT_SAMPLE_SKEWNESS = 0x000040, ///< Sample Skewness (third moment)
     38    PS_STAT_SAMPLE_KURTOSIS = 0x000080, ///< Sample Kurtosis (fourth moment)
     39    PS_STAT_ROBUST_MEDIAN   = 0x000100, ///< Robust Median
     40    PS_STAT_ROBUST_STDEV    = 0x000200, ///< Robust Standarad Deviation
     41    PS_STAT_ROBUST_QUARTILE = 0x000400, ///< Robust Quartile
     42    PS_STAT_ROBUST_SPARE1   = 0x000800, ///< Spare 1
     43    PS_STAT_FITTED_MEAN     = 0x001000, ///< Fitted Mean
     44    PS_STAT_FITTED_STDEV    = 0x002000, ///< Fitted Standard Deviation
     45    PS_STAT_FITTED_MEAN_V2  = 0x004000, ///< Fitted Mean
     46    PS_STAT_FITTED_STDEV_V2 = 0x008000, ///< Fitted Standard Deviation
     47    PS_STAT_FITTED_MEAN_V3  = 0x010000, ///< Fitted Mean
     48    PS_STAT_FITTED_STDEV_V3 = 0x020000, ///< Fitted Standard Deviation
     49    PS_STAT_CLIPPED_MEAN    = 0x040000, ///< Clipped Mean
     50    PS_STAT_CLIPPED_STDEV   = 0x080000, ///< Clipped Standard Deviation
     51    PS_STAT_USE_RANGE       = 0x100000, ///< Range
     52    PS_STAT_USE_BINSIZE     = 0x200000, ///< Binsize
     53    PS_STAT_SPARE2          = 0x400000, ///< Spare 2
     54    PS_STAT_SPARE3          = 0x800000, ///< Spare 3
    5055} psStatsOptions;
    5156
     
    6065    double sampleUQ;                   ///< upper quartile of sample
    6166    double sampleLQ;                   ///< lower quartile of sample
     67    double sampleSkewness;             ///< skewness (third moment) of sample
     68    double sampleKurtosis;             ///< kurtosis (fourth moment) of sample
    6269    double robustMedian;               ///< robust median of array
    6370    double robustStdev;                ///< robust standard deviation of array
Note: See TracChangeset for help on using the changeset viewer.