SHOGUN
v2.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
kernel
normalizer
IdentityKernelNormalizer.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) 2008-2009 Soeren Sonnenburg
8
* Copyright (C) 2008-2009 Fraunhofer Institute FIRST and Max-Planck-Society
9
*/
10
11
#ifndef _IDENTITYKERNELNORMALIZER_H___
12
#define _IDENTITYKERNELNORMALIZER_H___
13
14
#include <
shogun/kernel/normalizer/KernelNormalizer.h
>
15
16
namespace
shogun
17
{
19
class
CIdentityKernelNormalizer
:
public
CKernelNormalizer
20
{
21
public
:
23
CIdentityKernelNormalizer
() :
CKernelNormalizer
()
24
{
25
}
26
28
virtual
~CIdentityKernelNormalizer
()
29
{
30
}
31
34
virtual
bool
init
(
CKernel
* k)
35
{
36
return
true
;
37
}
38
44
inline
virtual
float64_t
normalize
(
45
float64_t
value, int32_t idx_lhs, int32_t idx_rhs)
46
{
47
return
value;
48
}
49
54
inline
virtual
float64_t
normalize_lhs
(
float64_t
value, int32_t idx_lhs)
55
{
56
return
value;
57
}
58
63
inline
virtual
float64_t
normalize_rhs
(
float64_t
value, int32_t idx_rhs)
64
{
65
return
value;
66
}
67
69
inline
virtual
const
char
*
get_name
()
const
{
return
"IdentityKernelNormalizer"
; }
70
};
71
}
72
#endif
SHOGUN
Machine Learning Toolbox - Documentation