SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 
13 #include <shogun/lib/config.h>
14 #include <shogun/base/SGObject.h>
15 #include <shogun/lib/SGMatrix.h>
16 #include <shogun/labels/Labels.h>
18 
19 namespace shogun
20 {
21 
26 {
27 public:
29 
30  virtual ~CDataGenerator();
31 
43  static SGMatrix<float64_t> generate_checkboard_data(int32_t num_classes,
44  int32_t dim, int32_t num_points, float64_t overlap);
45 
60  float64_t mean_shift,
62 
85  float64_t d, float64_t angle,
87 
88 #ifdef HAVE_LAPACK
89 
100 #endif /* HAVE_LAPACK */
101 
102  virtual const char* get_name() const { return "DataGenerator"; }
103 
104 private:
106  void init();
107 
108 };
109 
110 }
111 
112 #endif /* __DATAGENERATOR_H_ */
static SGMatrix< float64_t > generate_gaussians(index_t m, index_t n, index_t dim)
int32_t index_t
Definition: common.h:62
virtual const char * get_name() const
static SGMatrix< float64_t > generate_sym_mix_gauss(index_t m, float64_t d, float64_t angle, SGMatrix< float64_t > target=SGMatrix< float64_t >())
static SGMatrix< float64_t > generate_mean_data(index_t m, index_t dim, float64_t mean_shift, SGMatrix< float64_t > target=SGMatrix< float64_t >())
Class that is able to generate various data samples, which may be used for examples in SHOGUN...
Definition: DataGenerator.h:25
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:115
static SGMatrix< float64_t > generate_checkboard_data(int32_t num_classes, int32_t dim, int32_t num_points, float64_t overlap)
double float64_t
Definition: common.h:50
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18

SHOGUN Machine Learning Toolbox - Documentation