Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

vifa_gaussian.h

Go to the documentation of this file.
00001 // This is gel/vifa/vifa_gaussian.h
00002 #ifndef VIFA_GAUSSIAN_H
00003 #define VIFA_GAUSSIAN_H
00004 
00005 //-----------------------------------------------------------------------------
00006 //:
00007 // \file
00008 // \brief Compute the Gaussian probability density function at a point.
00009 //
00010 // \author Jim Farley, 11/6/1991
00011 //
00012 // \verbatim
00013 //  Modifications:
00014 //   MPP Jun 2003, Ported to VXL from TargetJr
00015 // \endverbatim
00016 //-----------------------------------------------------------------------------
00017 
00018 // From GeneralUtility/Stat/stat_constants.h in TargetJr
00019 #define  StatEPSILON 1e-8
00020 #define  EXPLIMIT    37.0
00021 #define  I_SQRT_2PI  0.39894228040143267794
00022 
00023 
00024 class vifa_gaussian
00025 {
00026  protected:
00027   float  mu_;
00028   float  sigma_;
00029 
00030  public:
00031   vifa_gaussian(float  mu, float  sigma) : mu_(mu), sigma_(sigma) {}
00032 
00033   virtual ~vifa_gaussian(void) {}
00034 
00035   float  pdf(float  x);
00036 
00037  protected:
00038   float  norm_dens(float  x);
00039 };
00040 
00041 
00042 #endif  // VIFA_GAUSSIAN_H

Generated on Thu Jan 10 14:47:30 2008 for contrib/gel/vifa by  doxygen 1.4.4