IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1342


Ignore:
Timestamp:
Jul 29, 2004, 1:34:28 PM (22 years ago)
Author:
evanalst
Message:

Changed argument normal type from int to bool.

Location:
trunk/psLib
Files:
7 edited

Legend:

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

    r1341 r1342  
    77 *  polynomials.  It also contains a Gaussian functions.
    88 *
    9  *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-07-29 22:44:34 $
     9 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-07-29 23:34:24 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8080           float mean,
    8181           float sigma,
    82            int normal)
     82           bool normal)
    8383{
    8484    float tmp = 1.0;
    8585
    86     if (normal == 1) {
     86    if (normal == true) {
    8787        #ifdef DARWIN
    8888        tmp = 1.0 / (float)sqrt(2.0 * M_PI * (sigma * sigma));
  • trunk/psLib/src/dataManip/psFunctions.h

    r1341 r1342  
    1212 *  @author George Gusciora, MHPCC
    1313 *
    14  *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2004-07-29 22:44:34 $
     14 *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2004-07-29 23:34:24 $
    1616 *
    1717 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3434           float mean,     ///< Mean for the Gaussian
    3535           float stddev,   ///< Standard deviation for the Gaussian
    36            int normal      ///< Indicates whether result should be normalized
     36           bool normal      ///< Indicates whether result should be normalized
    3737          );
    3838
  • trunk/psLib/src/math/psPolynomial.c

    r1341 r1342  
    77 *  polynomials.  It also contains a Gaussian functions.
    88 *
    9  *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-07-29 22:44:34 $
     9 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-07-29 23:34:24 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8080           float mean,
    8181           float sigma,
    82            int normal)
     82           bool normal)
    8383{
    8484    float tmp = 1.0;
    8585
    86     if (normal == 1) {
     86    if (normal == true) {
    8787        #ifdef DARWIN
    8888        tmp = 1.0 / (float)sqrt(2.0 * M_PI * (sigma * sigma));
  • trunk/psLib/src/math/psPolynomial.h

    r1341 r1342  
    1212 *  @author George Gusciora, MHPCC
    1313 *
    14  *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2004-07-29 22:44:34 $
     14 *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2004-07-29 23:34:24 $
    1616 *
    1717 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3434           float mean,     ///< Mean for the Gaussian
    3535           float stddev,   ///< Standard deviation for the Gaussian
    36            int normal      ///< Indicates whether result should be normalized
     36           bool normal      ///< Indicates whether result should be normalized
    3737          );
    3838
  • trunk/psLib/src/math/psSpline.c

    r1341 r1342  
    77 *  polynomials.  It also contains a Gaussian functions.
    88 *
    9  *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2004-07-29 22:44:34 $
     9 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2004-07-29 23:34:24 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8080           float mean,
    8181           float sigma,
    82            int normal)
     82           bool normal)
    8383{
    8484    float tmp = 1.0;
    8585
    86     if (normal == 1) {
     86    if (normal == true) {
    8787        #ifdef DARWIN
    8888        tmp = 1.0 / (float)sqrt(2.0 * M_PI * (sigma * sigma));
  • trunk/psLib/src/math/psSpline.h

    r1341 r1342  
    1212 *  @author George Gusciora, MHPCC
    1313 *
    14  *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    15  *  @date $Date: 2004-07-29 22:44:34 $
     14 *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     15 *  @date $Date: 2004-07-29 23:34:24 $
    1616 *
    1717 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3434           float mean,     ///< Mean for the Gaussian
    3535           float stddev,   ///< Standard deviation for the Gaussian
    36            int normal      ///< Indicates whether result should be normalized
     36           bool normal      ///< Indicates whether result should be normalized
    3737          );
    3838
  • trunk/psLib/test/dataManip/tst_psFunc01.c

    r1073 r1342  
    2626
    2727    for (x = 0.0 ; x < (MY_MEAN * 2.0) ; x+= 1.0) {
    28         printf("normal psGaussian(%f) is %f\n", x, psGaussian(x, MY_MEAN, MY_STDEV, 1));
     28        printf("normal psGaussian(%f) is %f\n", x, psGaussian(x, MY_MEAN, MY_STDEV, true));
    2929        x = x + 1.0;
    3030    }
    3131
    3232    for (x = 0.0 ; x < (MY_MEAN * 2.0) ; x+= 1.0) {
    33         printf("NON-normal psGaussian(%f) is %f\n", x, psGaussian(x, MY_MEAN, MY_STDEV, 0));
     33        printf("NON-normal psGaussian(%f) is %f\n", x, psGaussian(x, MY_MEAN, MY_STDEV, false));
    3434        x = x + 1.0;
    3535    }
Note: See TracChangeset for help on using the changeset viewer.