28 void CDataGenerator::init()
 
   33         int32_t dim, int32_t num_points, 
float64_t overlap)
 
   35     int32_t points_per_class = num_points / num_classes;
 
   44     int32_t points_idx = 0;
 
   45     for (int32_t class_idx=0; class_idx<num_classes; class_idx++)
 
   49             class_dim_centers[i] = (grid_idx[i] * cell_size + (grid_idx[i] + 1) * cell_size) / 2;
 
   51         for (
index_t p=points_idx; p<points_per_class+points_idx; p++)
 
   58                     if ((points(i, p)>(grid_idx[i]+1)*cell_size) ||
 
   59                             (points(i, p)<grid_idx[i]*cell_size))
 
   67             points(dim, p) = class_idx;
 
   69         points_idx += points_per_class;
 
   70         for (
index_t i=dim-1; i>=0; i--)
 
   73             if (grid_idx[i]>=grid_size)
 
   98             result(0,i)+=mean_shift;
 
  140     for (
index_t i = 0; i < n; ++i)
 
  146         for (
index_t k = 0; k < dim; ++k)
 
  148             mean[k] = (i+1)*grid_distance;
 
  153         for (
index_t j = 0; j < m; ++j)
 
static float64_t sin(float64_t x)
tanh(x), x being a complex128_t 
SGVector< float64_t > sample()
static SGMatrix< float64_t > generate_gaussians(index_t m, index_t n, index_t dim)
static float64_t ceil(float64_t d)
static float32_t normal_random(float32_t mean, float32_t std_dev)
Gaussian distribution interface. 
static float64_t randn_double()
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 >())
static SGMatrix< T > get_allocated_matrix(index_t num_rows, index_t num_cols, SGMatrix< T > pre_allocated=SGMatrix< T >())
static SGMatrix< float64_t > matrix_multiply(SGMatrix< float64_t > A, SGMatrix< float64_t > B, bool transpose_A=false, bool transpose_B=false, float64_t scale=1.0)
Class SGObject is the base class of all shogun objects. 
static SGMatrix< float64_t > generate_checkboard_data(int32_t num_classes, int32_t dim, int32_t num_points, float64_t overlap)
virtual ~CDataGenerator()
static float64_t cos(float64_t x)
sinh(x), x being a complex128_t 
all of classes and functions are contained in the shogun namespace 
static float32_t sqrt(float32_t x)
static SGMatrix< T > create_identity_matrix(index_t size, T scale)