Changeset 1440 for trunk/psLib/src/math/psStats.h
- Timestamp:
- Aug 9, 2004, 1:34:58 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psStats.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psStats.h
r1426 r1440 10 10 * @author George Gusciora, MHPCC 11 11 * 12 * @version $Revision: 1.2 2$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-08-09 2 2:44:25$12 * @version $Revision: 1.23 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-08-09 23:34:57 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 77 77 78 78 /** Do Statistics on an array. Returns a status value. \ingroup MathGroup */ 79 psStats *psVectorStats(psStats* stats, ///< stats structure defines stats to be calculated and how80 psVector * in, ///< Vector to be analysed: must be F3281 psVector * mask, ///< Ignore elements where (maskVector & maskVal) != 0: must be INT79 psStats* psVectorStats(psStats* stats, ///< stats structure defines stats to be calculated and how 80 psVector* in, ///< Vector to be analysed: must be F32 81 psVector* mask, ///< Ignore elements where (maskVector & maskVal) != 0: must be INT 82 82 // or NULL 83 83 unsigned int maskVal ///< Only mask elements with one of these bits set in … … 86 86 87 87 /** A constructor for the stats structure.*/ 88 psStats *psStatsAlloc(psStatsOptions options); ///< Statistics to measure88 psStats* psStatsAlloc(psStatsOptions options); ///< Statistics to measure 89 89 90 90 /****************************************************************************** … … 95 95 typedef struct 96 96 { 97 psVector *bounds; ///< Bounds for the bins (type F32)98 psVector *nums; ///< Number in each of the bins (INT)97 psVector* bounds; ///< Bounds for the bins (type F32) 98 psVector* nums; ///< Number in each of the bins (INT) 99 99 int minNum; ///< Number below the minimum 100 100 int maxNum; ///< Number above the maximum … … 104 104 105 105 /** Constructor \ingroup MathGroup */ 106 psHistogram *psHistogramAlloc(float lower, ///< Lower limit for the bins106 psHistogram* psHistogramAlloc(float lower, ///< Lower limit for the bins 107 107 float upper, ///< Upper limit for the bins 108 108 int n); ///< Number of bins 109 109 110 110 /** Generic constructor \ingroup MathGroup */ 111 psHistogram *psHistogramAllocGeneric(const psVector* restrict bounds); ///< Bounds for the bins111 psHistogram* psHistogramAllocGeneric(const psVector* restrict bounds); ///< Bounds for the bins 112 112 113 113 /** Calculate a histogram \ingroup MathGroup **/ 114 psHistogram *psVectorHistogram(psHistogram* out, ///< Histogram data115 const psVector * restrict in, ///< Vector to analyse116 const psVector * restrict mask, ///< Mask dat for input vector114 psHistogram* psVectorHistogram(psHistogram* out, ///< Histogram data 115 const psVector* restrict in, ///< Vector to analyse 116 const psVector* restrict mask, ///< Mask dat for input vector 117 117 unsigned int maskVal); ///< Mask value 118 118 119 bool p_psGetStatValue(const psStats * stats, double *value);119 bool p_psGetStatValue(const psStats* stats, double *value); 120 120 121 121 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
