IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 609


Ignore:
Timestamp:
May 7, 2004, 12:13:43 PM (22 years ago)
Author:
Paul Price
Message:

Reorganised psHistogram --- no longer specify both upper and lower
bounds, and now include a "simple" flag which indicates if the bounds
are distributed uniformly (impacts choice of algorithm). Also altered
the constructors.

File:
1 edited

Legend:

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

    r606 r609  
    8383/** Histograms  */
    8484typedef struct {
    85     const psFloatArray *restrict lower; ///< Lower bounds for the bins
    86     const psFloatArray *restrict upper; ///< Upper bounds for the bins
     85    const psFloatArray *restrict bounds; ///< Bounds for the bins
    8786    psIntArray *nums;                   ///< Number in each of the bins
    8887    const float minVal, maxVal;         ///< Minimum and maximum values
    8988    int minNum, maxNum;                 ///< Number below the minimum and above the maximum
     89    int uniform;                        ///< Is it a uniform distribution?
    9090} psHistogram;
    9191
     
    9494psHistogramAlloc(float lower,           ///< Lower limit for the bins
    9595                 float upper,           ///< Upper limit for the bins
    96                  float size             ///< Size of the bins
     96                 int n                  ///< Number of the bins
    9797    );
    9898
    9999/** Generic constructor \ingroup MathGroup */
    100100psHistogram *
    101 psHistogramAllocGeneric(const psFloatArray *restrict lower, ///< Lower bounds for the bins
    102                         const psFloatArray *restrict upper, ///< Upper bounds for the bins
     101psHistogramAllocGeneric(const psFloatArray *restrict bounds, ///< Bounds for the bins
    103102                        float minVal,   ///< Minimum value
    104103                        float maxVal    ///< Maximum value
Note: See TracChangeset for help on using the changeset viewer.