IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 13, 2004, 1:16:19 PM (22 years ago)
Author:
eugene
Message:

psFloatArray, psDoubleArray, psIntArray, etc merged into
psVector. psVector is analogous to psImage. reference to the old
forms have been converted to psVector. the file psStdArrays.h has
been removed and replaced with psVector.h (containing the vector
functions) and psTypes.h (containing the basic data types)

File:
1 edited

Legend:

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

    r609 r671  
    3939    double sampleUQ;                    ///< upper quartile of sample
    4040    double sampleLQ;                    ///< lower quartile of sample
    41     double robustMean;                  ///< robust mean of array
     41    double robustMean;                  ///< robust mean of data
    4242    int    robustMeanNvalues;           ///< number of measurements used for robust mean
    43     double robustMedian;                ///< robust median of array
     43    double robustMedian;                ///< robust median of data
    4444    int    robustMedianNvalues;         ///< number of measurements used for robust median
    45     double robustMode;                  ///< Robust mode of array
     45    double robustMode;                  ///< Robust mode of data
    4646    int    robustModeNvalues;           ///< Number of measurements used for robust mode
    47     double robustStdev;                 ///< robust standard deviation of array
     47    double robustStdev;                 ///< robust standard deviation of data
    4848    double robustUQ;                    ///< robust upper quartile
    4949    double robustLQ;                    ///< robust lower quartile
     
    5353    double clipSigma;                   ///< Nsigma used for clipping; user input
    5454    int    clipIter;                    ///< Number of clipping iterations; user input
    55     double min;                         ///< minimum data value in array
    56     double max;                         ///< maximum data value in array
    57     int    nValues;                     ///< number of data values in array
     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
    5858    psStatsOptions options;             ///< bitmask of calculated values
    5959} psStats;
    6060
    6161
    62 /** Do Statistics on an array.  Returns a status value. \ingroup MathGroup */
     62/** Do Statistics on a vector.  Returns a status value. \ingroup MathGroup */
    6363psStats *
    64 psArrayStats(psStats *stats,            ///< stats structure defines stats to be calculated, how and result
    65              const psFloatArray *restrict myArray, ///< Array to be analysed
    66              const psIntArray *restrict maskArray, ///< Ignore elements where (maskArray & maskVal) != 0
    67                                                    ///< May be NULL
    68              unsigned int maskVal       ///< Only mask elements with one of these bits set in maskArray
    69     );
     64psVectorStats(psStats *stats,           ///< stats structure defines stats to be calculated, how and result
     65             const psVector *restrict myArray, ///< Array to be analysed
     66             const psVector *restrict maskArray, ///< Ignore elements where (maskArray & maskVal) != 0
     67                                        ///< May be NULL
     68             unsigned int maskVal)      ///< Only mask elements with one of these bits set in maskArray
     69;
    7070
    7171/** Constructor */
    7272psStats *
    73 psStatsAlloc(psStatsOptions options     ///< Statistics to measure
    74     );
     73psStatsAlloc(psStatsOptions options)    ///< Statistics to measure
     74;
    7575
    7676/** Destructor */
    7777void
    78 psStatsFree(psStats *restrict stats     ///< Stats structure to destroy
    79     );
     78psStatsFree(psStats *restrict stats)    ///< Stats structure to destroy
     79;
    8080
    8181/***********************************************************************************************************/
     
    8383/** Histograms  */
    8484typedef struct {
    85     const psFloatArray *restrict bounds; ///< Bounds for the bins
    86     psIntArray *nums;                   ///< Number in each of the bins
     85    const psVector *restrict bounds;    ///< Bounds for the bins
     86    psVector *nums;                     ///< Number in each of the bins
    8787    const float minVal, maxVal;         ///< Minimum and maximum values
    8888    int minNum, maxNum;                 ///< Number below the minimum and above the maximum
     
    9494psHistogramAlloc(float lower,           ///< Lower limit for the bins
    9595                 float upper,           ///< Upper limit for the bins
    96                  int n                  ///< Number of the bins
    97     );
     96                 int n)                 ///< Number of the bins
     97;
    9898
    9999/** Generic constructor \ingroup MathGroup */
    100100psHistogram *
    101 psHistogramAllocGeneric(const psFloatArray *restrict bounds, ///< Bounds for the bins
     101psHistogramAllocGeneric(const psVector *restrict bounds, ///< Bounds for the bins
    102102                        float minVal,   ///< Minimum value
    103                         float maxVal    ///< Maximum value
    104     );
     103                        float maxVal)   ///< Maximum value
     104;
    105105
    106106/** Destructor \ingroup MathGroup **/
    107107void
    108 psHistogramFree(psHistogram *restrict myHist ///< Histogram to destroy
    109     );
     108psHistogramFree(psHistogram *restrict myHist) ///< Histogram to destroy
     109;
    110110
    111111
    112112/** Calculate a histogram \ingroup MathGroup **/
    113113psHistogram *
    114 psGetArrayHistogram(psHistogram *restrict myHist, ///< Histogram data
    115                     const psFloatArray *restrict myArray ///< Array to analyse
    116     );
     114psVectorHistogram(psHistogram *restrict myHist, ///< Histogram data
     115                  const psVector *restrict myArray) ///< Array to analyse
     116;
    117117
    118118#endif
Note: See TracChangeset for help on using the changeset viewer.