IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 751


Ignore:
Timestamp:
May 20, 2004, 3:09:20 PM (22 years ago)
Author:
gusciora
Message:

...

Location:
trunk/psLib/src
Files:
6 edited

Legend:

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

    r750 r751  
    1616#include "float.h"
    1717#include <math.h>
     18#define PI 3.14
    1819/*****************************************************************************
    1920    Evaluate a non-normalized Gaussian with the given mean and sigma at the
     
    2930    float tmp = 0.0;
    3031
    31     if (nomal == true) {
     32    if (normal == 1) {
    3233        tmp = 1.0 / sqrtf(2.0 * PI * (stddev * stddev));
    3334        return(tmp * exp(-((x-mean) * (x-mean)) / (2.0 * stddev * stddev)));
     
    3738}
    3839
     40/*
    3941psVector *psGaussianDev(float mean,
    4042                        float sigma,
     
    4244{
    4345    psVector *gauss = NULL;
    44 
     46 
    4547    gauss = psVectorAlloc(Npts, PS_TYPE_FLOAT);
    4648}
     49*/
    4750
    4851/*****************************************************************************
  • trunk/psLib/src/dataManip/psFunctions.h

    r750 r751  
    1212
    1313float
    14 psGaussian(float x,   ///< Value at which to evaluate
    15            float mean,   ///< Mean for the Gaussian
    16            float stddev   ///< Standard deviation for the Gaussian
     14psGaussian(float x,        ///< Value at which to evaluate
     15           float mean,     ///< Mean for the Gaussian
     16           float stddev,   ///< Standard deviation for the Gaussian
     17           int normal      ///< Indicates whether result should be normalized
    1718          );
    1819
  • trunk/psLib/src/math/psPolynomial.c

    r750 r751  
    1616#include "float.h"
    1717#include <math.h>
     18#define PI 3.14
    1819/*****************************************************************************
    1920    Evaluate a non-normalized Gaussian with the given mean and sigma at the
     
    2930    float tmp = 0.0;
    3031
    31     if (nomal == true) {
     32    if (normal == 1) {
    3233        tmp = 1.0 / sqrtf(2.0 * PI * (stddev * stddev));
    3334        return(tmp * exp(-((x-mean) * (x-mean)) / (2.0 * stddev * stddev)));
     
    3738}
    3839
     40/*
    3941psVector *psGaussianDev(float mean,
    4042                        float sigma,
     
    4244{
    4345    psVector *gauss = NULL;
    44 
     46 
    4547    gauss = psVectorAlloc(Npts, PS_TYPE_FLOAT);
    4648}
     49*/
    4750
    4851/*****************************************************************************
  • trunk/psLib/src/math/psPolynomial.h

    r750 r751  
    1212
    1313float
    14 psGaussian(float x,   ///< Value at which to evaluate
    15            float mean,   ///< Mean for the Gaussian
    16            float stddev   ///< Standard deviation for the Gaussian
     14psGaussian(float x,        ///< Value at which to evaluate
     15           float mean,     ///< Mean for the Gaussian
     16           float stddev,   ///< Standard deviation for the Gaussian
     17           int normal      ///< Indicates whether result should be normalized
    1718          );
    1819
  • trunk/psLib/src/math/psSpline.c

    r750 r751  
    1616#include "float.h"
    1717#include <math.h>
     18#define PI 3.14
    1819/*****************************************************************************
    1920    Evaluate a non-normalized Gaussian with the given mean and sigma at the
     
    2930    float tmp = 0.0;
    3031
    31     if (nomal == true) {
     32    if (normal == 1) {
    3233        tmp = 1.0 / sqrtf(2.0 * PI * (stddev * stddev));
    3334        return(tmp * exp(-((x-mean) * (x-mean)) / (2.0 * stddev * stddev)));
     
    3738}
    3839
     40/*
    3941psVector *psGaussianDev(float mean,
    4042                        float sigma,
     
    4244{
    4345    psVector *gauss = NULL;
    44 
     46 
    4547    gauss = psVectorAlloc(Npts, PS_TYPE_FLOAT);
    4648}
     49*/
    4750
    4851/*****************************************************************************
  • trunk/psLib/src/math/psSpline.h

    r750 r751  
    1212
    1313float
    14 psGaussian(float x,   ///< Value at which to evaluate
    15            float mean,   ///< Mean for the Gaussian
    16            float stddev   ///< Standard deviation for the Gaussian
     14psGaussian(float x,        ///< Value at which to evaluate
     15           float mean,     ///< Mean for the Gaussian
     16           float stddev,   ///< Standard deviation for the Gaussian
     17           int normal      ///< Indicates whether result should be normalized
    1718          );
    1819
Note: See TracChangeset for help on using the changeset viewer.