IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 9, 2004, 12:28:16 PM (22 years ago)
Author:
Paul Price
Message:

Doxygen-ated the source files.

File:
1 edited

Legend:

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

    r149 r153  
    55#include "psStdArrays.h"
    66
    7 /* Do Statistics on an array.  Returns a status value. */
     7/** Do Statistics on an array.  Returns a status value. */
    88int
    9 psArrayStats(const psFloatArray *restrict myArray, // Array to be analysed
    10              const psIntArray *restrict maskArray, // Ignore elements where (maskArray & maskVal) != 0
    11                                                    // May be NULL
    12              unsigned int maskVal,      // Only mask elements with one of these bits set in maskArray
    13              int numIter,               // Number of clipping iterations (0 not to clip)
    14              float numSD,               // Number of s.d. to clip at
    15              float *restrict mean,      // Mean of array (or NULL)
    16              float *restrict sd,        // Standard deviation (or NULL)
    17              float *restrict med        // Median (or NULL)
     9psArrayStats(const psFloatArray *restrict myArray, //!< Array to be analysed
     10             const psIntArray *restrict maskArray, //!< Ignore elements where (maskArray & maskVal) != 0
     11                                                   //!< May be NULL
     12             unsigned int maskVal,      //!< Only mask elements with one of these bits set in maskArray
     13             int numIter,               //!< Number of clipping iterations (0 not to clip)
     14             float numSD,               //!< Number of s.d. to clip at
     15             float *restrict mean,      //!< Mean of array (or NULL)
     16             float *restrict sd,        //!< Standard deviation (or NULL)
     17             float *restrict med        //!< Median (or NULL)
    1818             );
    1919
    2020/***********************************************************************************************************/
    2121
    22 /* Histograms */
     22/** Histograms */
    2323typedef struct {
    24     const psFloatArray *restrict lower, *restrict upper; // Lower and upper bounds for the bins
    25     psIntArray *nums;                   // Number in each of the bins
    26     const float minVal, maxVal;         // Minimum and maximum values
    27     int minNum, maxNum;                 // Number below the minimum and above the maximum
     24    const psFloatArray *restrict lower, *restrict upper; //!< Lower and upper bounds for the bins
     25    psIntArray *nums;                   //!< Number in each of the bins
     26    const float minVal, maxVal;         //!< Minimum and maximum values
     27    int minNum, maxNum;                 //!< Number below the minimum and above the maximum
    2828} psHistogram;
    2929
    3030
    31 /* Constructor */
     31/** Constructor */
    3232psHistogram *
    33 psHistogramNew(float lower,             // Lower limit for the bins
    34                float upper,             // Upper limit for the bins
    35                float size               // Size of the bins
     33psHistogramNew(float lower,             //!< Lower limit for the bins
     34               float upper,             //!< Upper limit for the bins
     35               float size               //!< Size of the bins
    3636    );
    3737
    38 /* Generic constructor */
     38/** Generic constructor */
    3939psHistogram *
    40 psHistogramNewGeneric(const psFloatArray *restrict lower, // Lower bounds for the bins
    41                       const psFloatArray *restrict upper, // Upper bounds for the bins
    42                       float minVal,     // Minimum value
    43                       float maxVal      // Maximum value
     40psHistogramNewGeneric(const psFloatArray *restrict lower, //!< Lower bounds for the bins
     41                      const psFloatArray *restrict upper, //!< Upper bounds for the bins
     42                      float minVal,     //!< Minimum value
     43                      float maxVal      //!< Maximum value
    4444    );
    4545
    46 /* Destructor */
     46/** Destructor */
    4747void
    48 psHistogramDel(psHistogram *restrict myHist // Histogram to destroy
     48psHistogramDel(psHistogram *restrict myHist //!< Histogram to destroy
    4949    );
    5050
    5151
    52 /* Calculate a histogram */
     52/** Calculate a histogram */
    5353psHistogram *
    54 psGetArrayHistogram(psHistogram *restrict myHist, // Histogram data
    55                     const psFloatArray *restrict myArray // Array to analyse
     54psGetArrayHistogram(psHistogram *restrict myHist, //!< Histogram data
     55                    const psFloatArray *restrict myArray //!< Array to analyse
    5656    );
    5757
Note: See TracChangeset for help on using the changeset viewer.