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 Soeren Sonnenburg 00008 * Copyright (C) 2008 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 00038 class CKernelNormalizer : public CSGObject 00039 { 00040 public: 00042 CKernelNormalizer() { } 00044 virtual ~CKernelNormalizer() { } 00045 00048 virtual bool init(CKernel* k)=0; 00049 00055 virtual float64_t normalize( 00056 float64_t value, int32_t idx_lhs, int32_t idx_rhs)=0; 00057 00062 virtual float64_t normalize_lhs(float64_t value, int32_t idx_lhs)=0; 00063 00068 virtual float64_t normalize_rhs(float64_t value, int32_t idx_rhs)=0; 00069 }; 00070 #endif