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
LatentFeatures.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 Viktor Gal
8
* Copyright (C) 2012 Viktor Gal
9
*/
10
11
#ifndef __LATENTFEATURES_H__
12
#define __LATENTFEATURES_H__
13
14
#include <
shogun/features/Features.h
>
15
#include <
shogun/lib/Data.h
>
16
17
namespace
shogun
18
{
24
class
CLatentFeatures
:
public
CFeatures
25
{
26
public
:
28
CLatentFeatures
();
29
34
CLatentFeatures
(int32_t num_samples);
35
36
virtual
~CLatentFeatures
();
37
42
virtual
CFeatures
*
duplicate
()
const
;
43
48
virtual
EFeatureType
get_feature_type
()
const
;
49
54
virtual
EFeatureClass
get_feature_class
()
const
;
55
60
virtual
int32_t
get_num_vectors
()
const
;
61
66
virtual
const
char
*
get_name
()
const
{
return
"LatentFeatures"
; }
67
72
bool
add_sample
(
CData
* example);
73
79
CData
*
get_sample
(
index_t
idx);
80
85
static
CLatentFeatures
*
obtain_from_generic
(
CFeatures
* base_feats);
86
protected
:
88
CDynamicObjectArray
*
m_samples
;
89
90
private
:
92
void
init();
93
};
94
}
95
96
#endif
/* __LATENTFEATURES_H__ */
97
SHOGUN
Machine Learning Toolbox - Documentation