contrib/gel/vifa/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 class vifa_gaussian
00019 {
00020  protected:
00021   float  mu_;
00022   float  sigma_;
00023 
00024  public:
00025   vifa_gaussian(float  mu, float  sigma) : mu_(mu), sigma_(sigma) {}
00026 
00027   virtual ~vifa_gaussian(void) {}
00028 
00029   float  pdf(float  x);
00030 
00031  protected:
00032   float  norm_dens(float  x);
00033 };
00034 
00035 
00036 #endif  // VIFA_GAUSSIAN_H