SHOGUN  v3.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GaussianDistribution.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2013 Heiko Strathmann
8  */
9 #ifdef HAVE_EIGEN3
10 
11 #ifndef GAUSSIANDISTRIBUTION_H
12 #define GAUSSIANDISTRIBUTION_H
13 
15 #include <shogun/lib/SGVector.h>
16 
17 namespace shogun
18 {
19 
20 
35 {
36 public:
39 
50  bool cov_is_factor=false);
51 
53  virtual ~CGaussianDistribution();
54 
63  virtual SGMatrix<float64_t> sample(int32_t num_samples,
64  SGMatrix<float64_t> pre_samples=SGMatrix<float64_t>()) const;
65 
83 
85  virtual const char* get_name() const
86  {
87  return "GaussianDistribution";
88  }
89 
90 private:
91 
93  void init();
94 
95 protected:
98 
102 };
103 
104 }
105 
106 #endif // GAUSSIANDISTRIBUTION_H
107 #endif // HAVE_EIGEN3

SHOGUN Machine Learning Toolbox - Documentation