IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 20, 2004, 6:12:37 PM (22 years ago)
Author:
eugene
Message:

substantial API changes based on change to PSLib SDRS

File:
1 edited

Legend:

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

    r671 r753  
    1212    PS_STAT_SAMPLE_MEDIAN         = 0x000002,
    1313    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
    3227} psStatsOptions;                         
    3328
    3429/** generic statistics structure */
    3530typedef struct {
    36     double sampleMean;                  ///< formal mean of sample
    37     double sampleMedian;                ///< formal median of sample
    38     double sampleStdev;                 ///< standard deviation of sample
    39     double sampleUQ;                    ///< upper quartile of sample
    40     double sampleLQ;                    ///< lower quartile of sample
    41     double robustMean;                  ///< robust mean of data
    42     int    robustMeanNvalues;           ///< number of measurements used for robust mean
    43     double robustMedian;                ///< robust median of data
    44     int    robustMedianNvalues;         ///< number of measurements used for robust median
    45     double robustMode;                  ///< Robust mode of data
    46     int    robustModeNvalues;           ///< Number of measurements used for robust mode
    47     double robustStdev;                 ///< robust standard deviation of data
    48     double robustUQ;                    ///< robust upper quartile
    49     double robustLQ;                    ///< robust lower quartile
    50     double clippedMean;                 ///< Nsigma clipped mean
    51     int    clippedMeanNvalues;          ///< number of data points used for clipped mean
    52     double clippedStdev;                ///< standard deviation after clipping
    53     double clipSigma;                   ///< Nsigma used for clipping; user input
    54     int    clipIter;                    ///< Number of clipping iterations; user input
    55     double min;                         ///< minimum data value in data
    56     double max;                         ///< maximum data value in data
    57     int    nValues;                     ///< number of data values in data
    58     psStatsOptions options;             ///< bitmask of calculated values
     31    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
    5954} psStats;
    6055
     
    8580    const psVector *restrict bounds;    ///< Bounds for the bins
    8681    psVector *nums;                     ///< Number in each of the bins
    87     const float minVal, maxVal;         ///< Minimum and maximum values
    8882    int minNum, maxNum;                 ///< Number below the minimum and above the maximum
    8983    int uniform;                        ///< Is it a uniform distribution?
     
    9993/** Generic constructor \ingroup MathGroup */
    10094psHistogram *
    101 psHistogramAllocGeneric(const psVector *restrict bounds, ///< Bounds for the bins
    102                         float minVal,   ///< Minimum value
    103                         float maxVal)   ///< Maximum value
     95psHistogramAllocGeneric(const psVector *restrict bounds) ///< Bounds for the bins
    10496;
    10597
     
    112104/** Calculate a histogram \ingroup MathGroup **/
    113105psHistogram *
    114 psVectorHistogram(psHistogram *restrict myHist, ///< Histogram data
     106psHistogramVector(psHistogram *restrict myHist, ///< Histogram data
    115107                  const psVector *restrict myArray) ///< Array to analyse
    116108;
Note: See TracChangeset for help on using the changeset viewer.