SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
mathematics
linalg
ratapprox
logdet
LogDetEstimator.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 Soumyajit De
8
*/
9
10
#ifndef LOG_DET_ESTIMATOR_H_
11
#define LOG_DET_ESTIMATOR_H_
12
13
#include <
shogun/lib/config.h
>
14
#include <
shogun/base/SGObject.h
>
15
#include <
shogun/base/Parameter.h
>
16
17
namespace
shogun
18
{
19
class
CTraceSampler;
20
template
<
class
T>
class
COperatorFunction
;
21
class
CIndependentComputationEngine
;
22
template
<
class
T>
class
SGVector
;
23
template
<
class
T>
class
SGMatrix
;
24
32
class
CLogDetEstimator
:
public
CSGObject
33
{
34
public
:
36
CLogDetEstimator
();
37
48
CLogDetEstimator
(
SGSparseMatrix<float64_t>
sparse_mat);
49
57
CLogDetEstimator
(
CTraceSampler
* trace_sampler,
58
COperatorFunction<float64_t>
* operator_log,
59
CIndependentComputationEngine
* computation_engine);
60
62
virtual
~CLogDetEstimator
();
63
71
SGVector<float64_t>
sample
(
index_t
num_estimates);
72
80
SGMatrix<float64_t>
sample_without_averaging
(
index_t
num_estimates);
81
83
virtual
const
char
*
get_name
()
const
84
{
85
return
"LogDetEstimator"
;
86
}
87
89
CTraceSampler
*
get_trace_sampler
(
void
)
const
;
90
92
CIndependentComputationEngine
*
get_computation_engine
(
void
)
const
;
93
95
COperatorFunction<float64_t>
*
get_operator_function
(
void
)
const
;
96
97
private
:
99
CTraceSampler
* m_trace_sampler;
100
102
COperatorFunction<float64_t>
* m_operator_log;
103
105
CIndependentComputationEngine
* m_computation_engine;
106
108
void
init();
109
};
110
111
}
112
113
#endif // LOG_DET_ESTIMATOR_H_
SHOGUN
机器学习工具包 - 项目文档