ARCHIVE
Snapshot of
the Shogun machine learning toolbox website
as of
2013
: preserved, not maintained. The live site:
shogun-toolbox.org
SHOGUN
4.1.0
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
src
shogun
features
streaming
generators
MeanShiftDataGenerator.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-2013 Heiko Strathmann
8
*/
9
10
#ifndef __MEANSHIFTDATAGENERATOR_H_
11
#define __MEANSHIFTDATAGENERATOR_H_
12
13
#include <
shogun/lib/config.h
>
14
15
#include <
shogun/lib/common.h
>
16
#include <
shogun/features/streaming/StreamingDenseFeatures.h
>
17
18
namespace
shogun
19
{
20
21
34
class
CMeanShiftDataGenerator
:
public
CStreamingDenseFeatures
<float64_t>
35
{
36
public
:
38
CMeanShiftDataGenerator
();
39
46
CMeanShiftDataGenerator
(
float64_t
mean_shift,
index_t
dimension,
47
index_t
m_dimension_shift
=0);
48
50
virtual
~CMeanShiftDataGenerator
();
51
53
virtual
const
char
*
get_name
()
const
54
{
55
return
"MeanShiftDataGenerator"
;
56
}
57
64
void
set_mean_shift_model
(
float64_t
mean_shift,
index_t
dimension,
65
index_t
m_dimension_shift
=0);
66
68
bool
get_next_example
();
69
71
void
release_example
();
72
73
private
:
75
void
init();
76
77
protected
:
79
float64_t
m_mean_shift
;
80
82
index_t
m_dimension
;
83
85
index_t
m_dimension_shift
;
86
};
87
88
}
89
90
#endif
/* __MEANSHIFTDATAGENERATOR_H_ */
shogun::CStreamingDenseFeatures
This class implements streaming features with dense feature vectors.
Definition:
StreamingDenseFeatures.h:30
index_t
int32_t index_t
Definition:
common.h:62
config.h
shogun::CMeanShiftDataGenerator::release_example
void release_example()
Definition:
MeanShiftDataGenerator.cpp:81
StreamingDenseFeatures.h
shogun::CMeanShiftDataGenerator::m_dimension_shift
index_t m_dimension_shift
Definition:
MeanShiftDataGenerator.h:85
shogun::CMeanShiftDataGenerator
Definition:
MeanShiftDataGenerator.h:34
shogun::CMeanShiftDataGenerator::~CMeanShiftDataGenerator
virtual ~CMeanShiftDataGenerator()
Definition:
MeanShiftDataGenerator.cpp:29
float64_t
double float64_t
Definition:
common.h:50
shogun::CMeanShiftDataGenerator::m_mean_shift
float64_t m_mean_shift
Definition:
MeanShiftDataGenerator.h:79
shogun::CMeanShiftDataGenerator::get_name
virtual const char * get_name() const
Definition:
MeanShiftDataGenerator.h:53
shogun::CMeanShiftDataGenerator::set_mean_shift_model
void set_mean_shift_model(float64_t mean_shift, index_t dimension, index_t m_dimension_shift=0)
Definition:
MeanShiftDataGenerator.cpp:33
shogun::CMeanShiftDataGenerator::CMeanShiftDataGenerator
CMeanShiftDataGenerator()
Definition:
MeanShiftDataGenerator.cpp:15
shogun::CMeanShiftDataGenerator::m_dimension
index_t m_dimension
Definition:
MeanShiftDataGenerator.h:82
shogun
all of classes and functions are contained in the shogun namespace
Definition:
class_list.h:18
common.h
shogun::CMeanShiftDataGenerator::get_next_example
bool get_next_example()
Definition:
MeanShiftDataGenerator.cpp:60
SHOGUN
Machine Learning Toolbox - Documentation