IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1582


Ignore:
Timestamp:
Aug 18, 2004, 4:25:42 PM (22 years ago)
Author:
Paul Price
Message:

Updating from SDRS.

File:
1 edited

Legend:

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

    r977 r1582  
    2424    PS_STAT_USE_RANGE             = 0x002000,
    2525    PS_STAT_USE_BINSIZE           = 0x004000,
    26     PS_STAT_ROBUST_FOR_SAMPLE     = 0x008000
    2726} psStatsOptions;
    2827
     
    3433    double sampleUQ;                    ///< upper quartile of sample
    3534    double sampleLQ;                    ///< lower quartile of sample
    36     double sampleLimit;                 ///< Number of datapoints to
    3735    double robustMean;                  ///< robust mean of data
    3836    double robustMedian;                ///< robust median of data
     
    5856psStats *
    5957psVectorStats(psStats *stats,           ///< stats structure defines stats to be calculated, how and result
    60              const psVector *restrict myArray, ///< Array to be analysed
    61              const psVector *restrict maskArray, ///< Ignore elements where (maskArray & maskVal) != 0
    62                                         ///< May be NULL
    63              unsigned int maskVal)      ///< Only mask elements with one of these bits set in maskArray
     58              const psVector *in,       ///< Array to be analysed
     59              const psVector *mask,     ///< Ignore elements where (maskArray & maskVal) != 0.  May be NULL
     60              unsigned int maskVal)     ///< Only mask elements with one of these bits set in maskArray
    6461;
    6562
     
    6966;
    7067
    71 /** Destructor */
    72 void
    73 psStatsFree(psStats *restrict stats)    ///< Stats structure to destroy
    74 ;
    75 
    7668/***********************************************************************************************************/
    7769
    7870/** Histograms  */
    7971typedef struct {
    80     const psVector *restrict bounds;    ///< Bounds for the bins
     72    const psVector *bounds;             ///< Bounds for the bins
    8173    psVector *nums;                     ///< Number in each of the bins
    8274    int minNum, maxNum;                 ///< Number below the minimum and above the maximum
    83     int uniform;                        ///< Is it a uniform distribution?
     75    bool uniform;                       ///< Is it a uniform distribution?
    8476} psHistogram;
    8577
     
    9385/** Generic constructor \ingroup MathGroup */
    9486psHistogram *
    95 psHistogramAllocGeneric(const psVector *restrict bounds) ///< Bounds for the bins
     87psHistogramAllocGeneric(const psVector *bounds) ///< Bounds for the bins
    9688;
    97 
    98 /** Destructor \ingroup MathGroup **/
    99 void
    100 psHistogramFree(psHistogram *restrict myHist) ///< Histogram to destroy
    101 ;
    102 
    10389
    10490/** Calculate a histogram \ingroup MathGroup **/
    10591psHistogram *
    106 psHistogramVector(psHistogram *restrict myHist, ///< Histogram data
    107                   const psVector *restrict myArray) ///< Array to analyse
    108 ;
     92psVectorHistogram(psHistogram *out,     ///< Input and output histogram
     93                  const psVector *in    ///< Array to analyse
     94                  const psVector *mask, ///< Ignore elements where (maskArray & maskVal) != 0.  May be NULL
     95                  unsigned int maskVal  ///< Only mask elements with one of these bits set in maskArray
     96    );
    10997
    11098#endif
Note: See TracChangeset for help on using the changeset viewer.