SHOGUN  3.2.1
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
IdentityKernelNormalizer.h
浏览该文件的文档.
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 
15 
16 namespace shogun
17 {
20 {
21  public:
24  {
25  }
26 
29  {
30  }
31 
34  virtual bool init(CKernel* k)
35  {
36  return true;
37  }
38 
45  float64_t value, int32_t idx_lhs, int32_t idx_rhs)
46  {
47  return value;
48  }
49 
54  virtual float64_t normalize_lhs(float64_t value, int32_t idx_lhs)
55  {
56  return value;
57  }
58 
63  virtual float64_t normalize_rhs(float64_t value, int32_t idx_rhs)
64  {
65  return value;
66  }
67 
69  virtual const char* get_name() const { return "IdentityKernelNormalizer"; }
70 };
71 }
72 #endif
virtual const char * get_name() const
virtual float64_t normalize(float64_t value, int32_t idx_lhs, int32_t idx_rhs)
double float64_t
Definition: common.h:48
Identity Kernel Normalization, i.e. no normalization is applied.
The class Kernel Normalizer defines a function to post-process kernel values.
virtual float64_t normalize_lhs(float64_t value, int32_t idx_lhs)
virtual float64_t normalize_rhs(float64_t value, int32_t idx_rhs)
The Kernel base class.
Definition: Kernel.h:150

SHOGUN 机器学习工具包 - 项目文档