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 _KERNELNORMALIZER_H___ 00012 #define _KERNELNORMALIZER_H___ 00013 00014 class CKernel; 00015 #include "kernel/Kernel.h" 00016 00040 class CKernelNormalizer : public CSGObject 00041 { 00042 public: 00044 CKernelNormalizer() { } 00046 virtual ~CKernelNormalizer() { } 00047 00050 virtual bool init(CKernel* k)=0; 00051 00057 virtual float64_t normalize( 00058 float64_t value, int32_t idx_lhs, int32_t idx_rhs)=0; 00059 00064 virtual float64_t normalize_lhs(float64_t value, int32_t idx_lhs)=0; 00065 00070 virtual float64_t normalize_rhs(float64_t value, int32_t idx_rhs)=0; 00071 }; 00072 #endif