SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
distributions
classical
GaussianDistribution.h
浏览该文件的文档.
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
14
#include <
shogun/distributions/classical/ProbabilityDistribution.h
>
15
#include <
shogun/lib/SGVector.h
>
16
17
namespace
shogun
18
{
19
20
34
class
CGaussianDistribution
:
public
CProbabilityDistribution
35
{
36
public
:
38
CGaussianDistribution
();
39
49
CGaussianDistribution
(
SGVector<float64_t>
mean,
SGMatrix<float64_t>
cov,
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
82
virtual
SGVector<float64_t>
log_pdf_multiple
(
SGMatrix<float64_t>
samples)
const
;
83
85
virtual
const
char
*
get_name
()
const
86
{
87
return
"GaussianDistribution"
;
88
}
89
90
private
:
91
93
void
init();
94
95
protected
:
97
SGVector<float64_t>
m_mean
;
98
101
SGMatrix<float64_t>
m_L
;
102
};
103
104
}
105
106
#endif // GAUSSIANDISTRIBUTION_H
107
#endif // HAVE_EIGEN3
SHOGUN
机器学习工具包 - 项目文档