IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 8, 2005, 1:40:46 PM (21 years ago)
Author:
desonia
Message:

added comments on the end of #endif and #else

File:
1 edited

Legend:

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

    r4138 r4162  
    1414 *      stats->binsize
    1515 *
    16  *  @version $Revision: 1.131 $ $Name: not supported by cvs2svn $
    17  *  @date $Date: 2005-06-07 23:11:54 $
     16 *  @version $Revision: 1.132 $ $Name: not supported by cvs2svn $
     17 *  @date $Date: 2005-06-08 23:40:45 $
    1818 *
    1919 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    878878    } else {
    879879        countFloat = (psF32)countInt;
    880         stats->sampleStdev = PS_SQRT_F32((sumSquares - (sumDiffs * sumDiffs / countFloat)) / (countFloat - 1));
     880        stats->sampleStdev = sqrtf((sumSquares - (sumDiffs * sumDiffs / countFloat)) / (countFloat - 1));
    881881    }
    882882}
     
    992992        // data ranges are used correctly.
    993993        if (errors != NULL) {
    994             stats->sampleStdev = (1.0 / PS_SQRT_F32(errorDivisor));
     994            stats->sampleStdev = (1.0 / sqrtf(errorDivisor));
    995995        } else {
    996996            countFloat = (psF32)countInt;
    997             stats->sampleStdev = PS_SQRT_F32((sumSquares - (sumDiffs * sumDiffs / countFloat)) / (countFloat - 1));
     997            stats->sampleStdev = sqrtf((sumSquares - (sumDiffs * sumDiffs / countFloat)) / (countFloat - 1));
    998998
    999999        }
     
    16271627        }
    16281628    }
    1629     myStdev = PS_SQRT_F32((sumSquares - (sumDiffs * sumDiffs / countFloat)) / (countFloat - 1));
     1629    myStdev = sqrtf((sumSquares - (sumDiffs * sumDiffs / countFloat)) / (countFloat - 1));
    16301630
    16311631    p_psNormalizeVectorRangeF32(robustHistogramVector, 0.0, 1.0);
     
    16571657                     "WARNING: failed fit a 1D polynomial.\n");
    16581658        }
    1659         psF32 polyFitSigma = PS_SQRT_F32(-0.5 / tmpPoly->coeff[2]);
     1659        psF32 polyFitSigma = sqrtf(-0.5 / tmpPoly->coeff[2]);
    16601660        psF32 polyFitMean = tmpPoly->coeff[1] * PS_SQR(polyFitSigma);
    16611661        // psF32 polyFitNorm = exp(tmpPoly->coedd[0] + PS_SQR(polyFitMean) / (2.0 * PS_SQR(polyFitSigma)));
Note: See TracChangeset for help on using the changeset viewer.