yat  0.8.3pre
GaussianKernelFunction.h
00001 #ifndef _theplu_yat_classifier_gaussian_kernel_function_
00002 #define _theplu_yat_classifier_gaussian_kernel_function_
00003 
00004 // $Id: GaussianKernelFunction.h 2119 2009-12-12 23:11:43Z peter $
00005 
00006 /*
00007   Copyright (C) 2004, 2005, 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
00008 
00009   This file is part of the yat library, http://dev.thep.lu.se/yat
00010 
00011   The yat library is free software; you can redistribute it and/or
00012   modify it under the terms of the GNU General Public License as
00013   published by the Free Software Foundation; either version 3 of the
00014   License, or (at your option) any later version.
00015 
00016   The yat library is distributed in the hope that it will be useful,
00017   but WITHOUT ANY WARRANTY; without even the implied warranty of
00018   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00019   General Public License for more details.
00020 
00021   You should have received a copy of the GNU General Public License
00022   along with yat. If not, see <http://www.gnu.org/licenses/>.
00023 */
00024 
00025 #include "KernelFunction.h"
00026 
00027 #include <cmath>
00028 
00029 namespace theplu {
00030 namespace yat {
00031 namespace classifier {
00032 
00033   class DataLookup1D;
00034 
00038  
00039   class GaussianKernelFunction : public KernelFunction 
00040   {
00041     
00042   public:
00047     GaussianKernelFunction(double = 1);
00048     
00052        virtual ~GaussianKernelFunction(void) {};
00053     
00058     double operator()(const DataLookup1D& x,
00059                       const DataLookup1D& y) const; 
00060 
00065     double operator()(const DataLookup1D& x,
00066                       const DataLookupWeighted1D& y) const; 
00067 
00072     double operator()(const DataLookupWeighted1D& x,
00073                       const DataLookupWeighted1D& y) const; 
00074 
00075   private:
00076     double sigma2_;
00077 
00078   }; // class GaussianKernelFunction
00079 
00080 }}} // of namespace classifier, yat, and theplu
00081 
00082 #endif

Generated on Thu Dec 20 2012 03:12:57 for yat by  doxygen 1.8.0-20120409