GaussianShiftKernel.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) 1999-2008 Soeren Sonnenburg
00008  * Copyright (C) 1999-2008 Fraunhofer Institute FIRST and Max-Planck-Society
00009  */
00010 
00011 #ifndef _GAUSSIANSHIFTKERNEL_H___
00012 #define _GAUSSIANSHIFTKERNEL_H___
00013 
00014 #include "lib/common.h"
00015 #include "kernel/GaussianKernel.h"
00016 
00018 class CGaussianShiftKernel: public CGaussianKernel
00019 {
00020     public:
00028         CGaussianShiftKernel(INT size, double width, int max_shift,
00029             int shift_step);
00030 
00040         CGaussianShiftKernel(CRealFeatures* l, CRealFeatures* r,
00041             double width, int max_shift, int shift_step, INT size=10);
00042 
00043         virtual ~CGaussianShiftKernel();
00044 
00049         virtual EKernelType get_kernel_type() { return K_GAUSSIANSHIFT; }
00050 
00055         virtual const CHAR* get_name() { return "GaussianShift"; }
00056 
00057     protected:
00066         virtual DREAL compute(INT idx_a, INT idx_b);
00067 
00068     protected:
00070         int max_shift;
00072         int shift_step;
00073 };
00074 
00075 #endif /* _GAUSSIANSHIFTKERNEL_H__ */

SHOGUN Machine Learning Toolbox - Documentation