vpdl_gaussian_base.h
Go to the documentation of this file.
1 // This is core/vpdl/vpdl_gaussian_base.h
2 #ifndef vpdl_gaussian_base_h_
3 #define vpdl_gaussian_base_h_
4 //:
5 // \file
6 // \author Matthew Leotta
7 // \date February 11, 2009
8 // \brief The abstract base class for Gaussian distributions
9 //
10 // \verbatim
11 // Modifications
12 // None
13 // \endverbatim
14 
15 #include <vpdl/vpdl_distribution.h>
16 
17 
18 //: The abstract base class for Gaussian distributions
19 // All Gaussian classes represent the mean in the same way,
20 // so it is managed in this base class.
21 // Derived classes differ in how they represent covariance
22 template<class T, unsigned int n=0>
24 {
25  public:
26  //: the data type used for vectors
28 
29 
30  //: Destructor
31  virtual ~vpdl_gaussian_base() {}
32 
33  //: Access the mean directly
34  virtual const vector& mean() const = 0;
35 
36  //: Set the mean
37  virtual void set_mean(const vector& mean) = 0;
38 };
39 
40 
41 #endif // vpdl_gaussian_base_h_
virtual void set_mean(const vector &mean)=0
Set the mean.
virtual ~vpdl_gaussian_base()
Destructor.
The templated base class for all distributions.
The abstract base class for Gaussian distributions.
The base class for all probability distributions.
virtual const vector & mean() const =0
Access the mean directly.
vpdt_field_default< T, n >::type vector
the data type used for vectors.