Changeset 3115 for trunk/psLib/src/dataManip/psStats.c
- Timestamp:
- Feb 2, 2005, 2:54:13 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/dataManip/psStats.c (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataManip/psStats.c
r3095 r3115 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.11 1$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 1-26 20:24:17$11 * @version $Revision: 1.112 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-02-03 00:54:10 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 145 145 this routine sets stats->sampleMean to NAN. 146 146 *****************************************************************************/ 147 psS32 p_psVectorSampleMean(const psVector* restrictmyVector,148 const psVector* restricterrors,149 const psVector* restrictmaskVector,147 psS32 p_psVectorSampleMean(const psVector* myVector, 148 const psVector* errors, 149 const psVector* maskVector, 150 150 psU32 maskVal, 151 151 psStats* stats) … … 283 283 this routine sets stats->max to NAN. 284 284 *****************************************************************************/ 285 psS32 p_psVectorMax(const psVector* restrictmyVector,286 const psVector* restrictmaskVector,285 psS32 p_psVectorMax(const psVector* myVector, 286 const psVector* maskVector, 287 287 psU32 maskVal, 288 288 psStats* stats) … … 348 348 this routine sets stats->min to NAN. 349 349 *****************************************************************************/ 350 psS32 p_psVectorMin(const psVector* restrictmyVector,351 const psVector* restrictmaskVector,350 psS32 p_psVectorMin(const psVector* myVector, 351 const psVector* maskVector, 352 352 psU32 maskVal, 353 353 psStats* stats) … … 414 414 "false". 415 415 *****************************************************************************/ 416 bool p_psVectorCheckNonEmpty(const psVector* restrictmyVector,417 const psVector* restrictmaskVector,416 bool p_psVectorCheckNonEmpty(const psVector* myVector, 417 const psVector* maskVector, 418 418 psU32 maskVal, 419 419 psStats* stats) … … 462 462 range, if specified. 463 463 *****************************************************************************/ 464 psS32 p_psVectorNValues(const psVector* restrictmyVector,465 const psVector* restrictmaskVector,464 psS32 p_psVectorNValues(const psVector* myVector, 465 const psVector* maskVector, 466 466 psU32 maskVal, 467 467 psStats* stats) … … 511 511 XXX: Use static vectors for sort arrays. 512 512 *****************************************************************************/ 513 bool p_psVectorSampleMedian(const psVector* restrictmyVector,514 const psVector* restrictmaskVector,513 bool p_psVectorSampleMedian(const psVector* myVector, 514 const psVector* maskVector, 515 515 psU32 maskVal, 516 516 psStats* stats) … … 701 701 NULL 702 702 *****************************************************************************/ 703 bool p_psVectorSampleQuartiles(const psVector* restrictmyVector,704 const psVector* restrictmaskVector,703 bool p_psVectorSampleQuartiles(const psVector* myVector, 704 const psVector* maskVector, 705 705 psU32 maskVal, 706 706 psStats* stats) … … 787 787 788 788 *****************************************************************************/ 789 void p_psVectorSampleStdevOLD(const psVector* restrictmyVector,790 const psVector* restricterrors,791 const psVector* restrictmaskVector,789 void p_psVectorSampleStdevOLD(const psVector* myVector, 790 const psVector* errors, 791 const psVector* maskVector, 792 792 psU32 maskVal, 793 793 psStats* stats) … … 881 881 882 882 *****************************************************************************/ 883 void p_psVectorSampleStdev(const psVector* restrictmyVector,884 const psVector* restricterrors,885 const psVector* restrictmaskVector,883 void p_psVectorSampleStdev(const psVector* myVector, 884 const psVector* errors, 885 const psVector* maskVector, 886 886 psU32 maskVal, 887 887 psStats* stats) … … 896 896 // psF32 sum1; 897 897 // psF32 sum2; 898 psF32 errorDivisor ;898 psF32 errorDivisor = 0.0f; 899 899 900 900 // This procedure requires the mean. If it has not been already … … 1003 1003 -2: warning 1004 1004 *****************************************************************************/ 1005 psS32 p_psVectorClippedStats(const psVector* restrictmyVector,1006 const psVector* restricterrors,1007 const psVector* restrictmaskVector,1005 psS32 p_psVectorClippedStats(const psVector* myVector, 1006 const psVector* errors, 1007 const psVector* maskVector, 1008 1008 psU32 maskVal, 1009 1009 psStats* stats) … … 1331 1331 psPolynomial1D *myPoly = psPolynomial1DAlloc(2, PS_POLYNOMIAL_ORD); 1332 1332 1333 psF32 tmpFloat ;1333 psF32 tmpFloat = 0.0f; 1334 1334 1335 1335 if ((binNum > 0) && (binNum < (yVec->n - 2))) { … … 1425 1425 XXX: Check for errors in psLib routines that we call. 1426 1426 *****************************************************************************/ 1427 psS32 p_psVectorRobustStats(const psVector* restrictmyVector,1428 const psVector* restricterrors,1429 const psVector* restrictmaskVector,1427 psS32 p_psVectorRobustStats(const psVector* myVector, 1428 const psVector* errors, 1429 const psVector* maskVector, 1430 1430 psU32 maskVal, 1431 1431 psStats* stats) … … 1820 1820 The histogram structure 1821 1821 *****************************************************************************/ 1822 psHistogram* psHistogramAllocGeneric(const psVector* restrictbounds)1822 psHistogram* psHistogramAllocGeneric(const psVector* bounds) 1823 1823 { 1824 1824 PS_VECTOR_CHECK_NULL(bounds, NULL); … … 1890 1890 psF32 boxcarRight = boxcarCenter + (boxcarWidth / 2.0); 1891 1891 psS32 bin; 1892 psS32 boxcarLeftBinNum ;1893 psS32 boxcarRightBinNum ;1892 psS32 boxcarLeftBinNum = 0; 1893 psS32 boxcarRightBinNum = 0; 1894 1894 1895 1895 // Determine the left endpoint of the boxcar for the PDF. … … 1961 1961 *****************************************************************************/ 1962 1962 psHistogram* psVectorHistogram(psHistogram* out, 1963 const psVector* restrictin,1964 const psVector* restricterrors,1965 const psVector* restrictmask,1963 const psVector* in, 1964 const psVector* errors, 1965 const psVector* mask, 1966 1966 psU32 maskVal) 1967 1967 {
Note:
See TracChangeset
for help on using the changeset viewer.
