SHOGUN
v3.0.0
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
shogun
features
DataGenerator.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) 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
16
namespace
shogun
17
{
18
22
class
CDataGenerator
:
public
CSGObject
23
{
24
public
:
25
CDataGenerator
();
26
27
virtual
~CDataGenerator
();
28
42
static
SGMatrix<float64_t>
generate_mean_data
(
index_t
m,
index_t
dim,
43
float64_t
mean_shift,
44
SGMatrix<float64_t>
target=
SGMatrix<float64_t>
());
45
67
static
SGMatrix<float64_t>
generate_sym_mix_gauss
(
index_t
m,
68
float64_t
d,
float64_t
angle,
69
SGMatrix<float64_t>
target=
SGMatrix<float64_t>
());
70
71
#ifdef HAVE_LAPACK
72
82
static
SGMatrix<float64_t>
generate_gaussians
(
index_t
m,
index_t
n,
index_t
dim);
83
#endif
/* HAVE_LAPACK */
84
85
virtual
const
char
*
get_name
()
const
{
return
"DataGenerator"
; }
86
87
private
:
89
void
init();
90
91
};
92
93
}
94
95
#endif
/* __DATAGENERATOR_H_ */
SHOGUN
Machine Learning Toolbox - Documentation