SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
features
DataGenerator.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) 2012 Heiko Strathmann
8
*/
9
10
#ifndef __DATAGENERATOR_H_
11
#define __DATAGENERATOR_H_
12
#include <
shogun/lib/config.h
>
13
#include <
shogun/base/SGObject.h
>
14
#include <
shogun/lib/SGMatrix.h
>
15
#include <
shogun/labels/Labels.h
>
16
#include <
shogun/labels/MulticlassLabels.h
>
17
18
namespace
shogun
19
{
20
24
class
CDataGenerator
:
public
CSGObject
25
{
26
public
:
27
CDataGenerator
();
28
29
virtual
~CDataGenerator
();
30
42
static
SGMatrix<float64_t>
generate_checkboard_data
(int32_t num_classes,
43
int32_t dim, int32_t num_points,
float64_t
overlap);
44
58
static
SGMatrix<float64_t>
generate_mean_data
(
index_t
m,
index_t
dim,
59
float64_t
mean_shift,
60
SGMatrix<float64_t>
target=
SGMatrix<float64_t>
());
61
83
static
SGMatrix<float64_t>
generate_sym_mix_gauss
(
index_t
m,
84
float64_t
d,
float64_t
angle,
85
SGMatrix<float64_t>
target=
SGMatrix<float64_t>
());
86
87
#ifdef HAVE_LAPACK
88
98
static
SGMatrix<float64_t>
generate_gaussians
(
index_t
m,
index_t
n,
index_t
dim);
99
#endif
/* HAVE_LAPACK */
100
101
virtual
const
char
*
get_name
()
const
{
return
"DataGenerator"
; }
102
103
private
:
105
void
init();
106
107
};
108
109
}
110
111
#endif
/* __DATAGENERATOR_H_ */
SHOGUN
机器学习工具包 - 项目文档