KernelNormalizer.h

Go to the documentation of this file.
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 #include "kernel/Kernel.h"
00015 
00016 namespace shogun
00017 {
00018 class CKernel;
00042 class CKernelNormalizer : public CSGObject
00043 {
00044     public:
00046         CKernelNormalizer() { }
00048         virtual ~CKernelNormalizer() { }
00049 
00052         virtual bool init(CKernel* k)=0;
00053 
00059         virtual float64_t normalize(
00060             float64_t value, int32_t idx_lhs, int32_t idx_rhs)=0;
00061 
00066         virtual float64_t normalize_lhs(float64_t value, int32_t idx_lhs)=0;
00067 
00072         virtual float64_t normalize_rhs(float64_t value, int32_t idx_rhs)=0;
00073 };
00074 }
00075 #endif

SHOGUN Machine Learning Toolbox - Documentation