1 // This is gel/vifa/vifa_gaussian.h
2 #ifndef VIFA_GAUSSIAN_H
3 #define VIFA_GAUSSIAN_H
4 
5 //-----------------------------------------------------------------------------
6 //:
7 // \file
8 // \brief Compute the Gaussian probability density function at a point.
9 //
10 // \author Jim Farley, 11/6/1991
11 //
12 // \verbatim
13 //  Modifications:
14 //   MPP Jun 2003, Ported to VXL from TargetJr
15 // \endverbatim
16 //-----------------------------------------------------------------------------
17 
18 class vifa_gaussian
19 {
20  protected:
21   float  mu_;
22   float  sigma_;
23 
24  public:
vifa_gaussian(float mu,float sigma)25   vifa_gaussian(float  mu, float  sigma) : mu_(mu), sigma_(sigma) {}
26 
27   virtual ~vifa_gaussian() = default;
28 
29   float  pdf(float  x);
30 
31  protected:
32   float  norm_dens(float  x);
33 };
34 
35 
36 #endif  // VIFA_GAUSSIAN_H
37