IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 2, 2005, 2:54:13 PM (21 years ago)
Author:
desonia
Message:

Added SWIG and autoconf.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/psStats.c

    r3095 r3115  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.111 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-01-26 20:24:17 $
     11 *  @version $Revision: 1.112 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-02-03 00:54:10 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    145145this routine sets stats->sampleMean to NAN.
    146146 *****************************************************************************/
    147 psS32 p_psVectorSampleMean(const psVector* restrict myVector,
    148                            const psVector* restrict errors,
    149                            const psVector* restrict maskVector,
     147psS32 p_psVectorSampleMean(const psVector* myVector,
     148                           const psVector* errors,
     149                           const psVector* maskVector,
    150150                           psU32 maskVal,
    151151                           psStats* stats)
     
    283283this routine sets stats->max to NAN.
    284284 *****************************************************************************/
    285 psS32 p_psVectorMax(const psVector* restrict myVector,
    286                     const psVector* restrict maskVector,
     285psS32 p_psVectorMax(const psVector* myVector,
     286                    const psVector* maskVector,
    287287                    psU32 maskVal,
    288288                    psStats* stats)
     
    348348this routine sets stats->min to NAN.
    349349 *****************************************************************************/
    350 psS32 p_psVectorMin(const psVector* restrict myVector,
    351                     const psVector* restrict maskVector,
     350psS32 p_psVectorMin(const psVector* myVector,
     351                    const psVector* maskVector,
    352352                    psU32 maskVal,
    353353                    psStats* stats)
     
    414414"false".
    415415 *****************************************************************************/
    416 bool p_psVectorCheckNonEmpty(const psVector* restrict myVector,
    417                              const psVector* restrict maskVector,
     416bool p_psVectorCheckNonEmpty(const psVector* myVector,
     417                             const psVector* maskVector,
    418418                             psU32 maskVal,
    419419                             psStats* stats)
     
    462462range, if specified.
    463463 *****************************************************************************/
    464 psS32 p_psVectorNValues(const psVector* restrict myVector,
    465                         const psVector* restrict maskVector,
     464psS32 p_psVectorNValues(const psVector* myVector,
     465                        const psVector* maskVector,
    466466                        psU32 maskVal,
    467467                        psStats* stats)
     
    511511XXX: Use static vectors for sort arrays.
    512512 *****************************************************************************/
    513 bool p_psVectorSampleMedian(const psVector* restrict myVector,
    514                             const psVector* restrict maskVector,
     513bool p_psVectorSampleMedian(const psVector* myVector,
     514                            const psVector* maskVector,
    515515                            psU32 maskVal,
    516516                            psStats* stats)
     
    701701    NULL
    702702 *****************************************************************************/
    703 bool p_psVectorSampleQuartiles(const psVector* restrict myVector,
    704                                const psVector* restrict maskVector,
     703bool p_psVectorSampleQuartiles(const psVector* myVector,
     704                               const psVector* maskVector,
    705705                               psU32 maskVal,
    706706                               psStats* stats)
     
    787787 
    788788 *****************************************************************************/
    789 void p_psVectorSampleStdevOLD(const psVector* restrict myVector,
    790                               const psVector* restrict errors,
    791                               const psVector* restrict maskVector,
     789void p_psVectorSampleStdevOLD(const psVector* myVector,
     790                              const psVector* errors,
     791                              const psVector* maskVector,
    792792                              psU32 maskVal,
    793793                              psStats* stats)
     
    881881 
    882882 *****************************************************************************/
    883 void p_psVectorSampleStdev(const psVector* restrict myVector,
    884                            const psVector* restrict errors,
    885                            const psVector* restrict maskVector,
     883void p_psVectorSampleStdev(const psVector* myVector,
     884                           const psVector* errors,
     885                           const psVector* maskVector,
    886886                           psU32 maskVal,
    887887                           psStats* stats)
     
    896896    //    psF32 sum1;
    897897    //    psF32 sum2;
    898     psF32 errorDivisor;
     898    psF32 errorDivisor = 0.0f;
    899899
    900900    // This procedure requires the mean.  If it has not been already
     
    10031003    -2: warning
    10041004 *****************************************************************************/
    1005 psS32 p_psVectorClippedStats(const psVector* restrict myVector,
    1006                              const psVector* restrict errors,
    1007                              const psVector* restrict maskVector,
     1005psS32 p_psVectorClippedStats(const psVector* myVector,
     1006                             const psVector* errors,
     1007                             const psVector* maskVector,
    10081008                             psU32 maskVal,
    10091009                             psStats* stats)
     
    13311331    psPolynomial1D *myPoly = psPolynomial1DAlloc(2, PS_POLYNOMIAL_ORD);
    13321332
    1333     psF32 tmpFloat;
     1333    psF32 tmpFloat = 0.0f;
    13341334
    13351335    if ((binNum > 0) && (binNum < (yVec->n - 2))) {
     
    14251425XXX: Check for errors in psLib routines that we call.
    14261426*****************************************************************************/
    1427 psS32 p_psVectorRobustStats(const psVector* restrict myVector,
    1428                             const psVector* restrict errors,
    1429                             const psVector* restrict maskVector,
     1427psS32 p_psVectorRobustStats(const psVector* myVector,
     1428                            const psVector* errors,
     1429                            const psVector* maskVector,
    14301430                            psU32 maskVal,
    14311431                            psStats* stats)
     
    18201820    The histogram structure
    18211821 *****************************************************************************/
    1822 psHistogram* psHistogramAllocGeneric(const psVector* restrict bounds)
     1822psHistogram* psHistogramAllocGeneric(const psVector* bounds)
    18231823{
    18241824    PS_VECTOR_CHECK_NULL(bounds, NULL);
     
    18901890    psF32 boxcarRight = boxcarCenter + (boxcarWidth / 2.0);
    18911891    psS32 bin;
    1892     psS32 boxcarLeftBinNum;
    1893     psS32 boxcarRightBinNum;
     1892    psS32 boxcarLeftBinNum = 0;
     1893    psS32 boxcarRightBinNum = 0;
    18941894
    18951895    // Determine the left endpoint of the boxcar for the PDF.
     
    19611961 *****************************************************************************/
    19621962psHistogram* psVectorHistogram(psHistogram* out,
    1963                                const psVector* restrict in,
    1964                                const psVector* restrict errors,
    1965                                const psVector* restrict mask,
     1963                               const psVector* in,
     1964                               const psVector* errors,
     1965                               const psVector* mask,
    19661966                               psU32 maskVal)
    19671967{
Note: See TracChangeset for help on using the changeset viewer.