SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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/lib/config.h>
15 
17 
18 namespace shogun
19 {
22 {
23  public:
26  {
27  }
28 
31  {
32  }
33 
36  virtual bool init(CKernel* k)
37  {
38  return true;
39  }
40 
47  float64_t value, int32_t idx_lhs, int32_t idx_rhs)
48  {
49  return value;
50  }
51 
56  virtual float64_t normalize_lhs(float64_t value, int32_t idx_lhs)
57  {
58  return value;
59  }
60 
65  virtual float64_t normalize_rhs(float64_t value, int32_t idx_rhs)
66  {
67  return value;
68  }
69 
71  virtual const char* get_name() const { return "IdentityKernelNormalizer"; }
72 };
73 }
74 #endif

SHOGUN Machine Learning Toolbox - Documentation