00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of the GNU General Public License as published by 00004 * the Free Software Foundation; either version 3 of the License, or 00005 * (at your option) any later version. 00006 * 00007 * Written (W) 2008-2009 Soeren Sonnenburg 00008 * Copyright (C) 2008-2009 Fraunhofer Institute FIRST and Max-Planck-Society 00009 */ 00010 00011 #ifndef _IDENTITYKERNELNORMALIZER_H___ 00012 #define _IDENTITYKERNELNORMALIZER_H___ 00013 00014 #include "kernel/KernelNormalizer.h" 00015 00017 class CIdentityKernelNormalizer : public CKernelNormalizer 00018 { 00019 public: 00021 CIdentityKernelNormalizer() 00022 { 00023 } 00024 00026 virtual ~CIdentityKernelNormalizer() 00027 { 00028 } 00029 00032 virtual bool init(CKernel* k) 00033 { 00034 return true; 00035 } 00036 00042 inline virtual float64_t normalize( 00043 float64_t value, int32_t idx_lhs, int32_t idx_rhs) 00044 { 00045 return value; 00046 } 00047 00052 inline virtual float64_t normalize_lhs(float64_t value, int32_t idx_lhs) 00053 { 00054 return value; 00055 } 00056 00061 inline virtual float64_t normalize_rhs(float64_t value, int32_t idx_rhs) 00062 { 00063 return value; 00064 } 00065 00067 inline virtual const char* get_name() const { return "IdentityKernelNormalizer"; } 00068 }; 00069 00070 #endif