SVKernelFunction.h

Go to the documentation of this file.
00001 // @(#)root/tmva $Id: SVKernelFunction.h 31458 2009-11-30 13:58:20Z stelzer $    
00002 // Author: Andrzej Zemla
00003 
00004 /**********************************************************************************
00005  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis       *
00006  * Package: TMVA                                                                  *
00007  * Class  : SVKernelFunction                                                      *
00008  * Web    : http://tmva.sourceforge.net                                           *
00009  *                                                                                *
00010  * Description:                                                                   *
00011  *      Kernel for Support Vector Machine                                         *
00012  *                                                                                *
00013  * Authors (alphabetical):                                                        *
00014  *      Marcin Wolter  <Marcin.Wolter@cern.ch> - IFJ PAN, Krakow, Poland          *
00015  *      Andrzej Zemla  <azemla@cern.ch>        - IFJ PAN, Krakow, Poland          *
00016  *      (IFJ PAN: Henryk Niewodniczanski Inst. Nucl. Physics, Krakow, Poland)     *   
00017  *                                                                                *
00018  * Copyright (c) 2005:                                                            *
00019  *      CERN, Switzerland                                                         * 
00020  *      MPI-K Heidelberg, Germany                                                 * 
00021  *      PAN, Krakow, Poland                                                       *
00022  *                                                                                *
00023  * Redistribution and use in source and binary forms, with or without             *
00024  * modification, are permitted according to the terms listed in LICENSE           *
00025  * (http://tmva.sourceforge.net/LICENSE)                                          *
00026  **********************************************************************************/
00027 
00028 #ifndef ROOT_TMVA_SVKernelFunction
00029 #define ROOT_TMVA_SVKernelFunction
00030 
00031 #ifndef ROOT_Rtypes
00032 #include "Rtypes.h"
00033 #endif
00034 
00035 namespace TMVA {
00036 
00037    class SVEvent;
00038    class SVKernelFunction {
00039 
00040    public:
00041 
00042       SVKernelFunction();
00043       SVKernelFunction( Float_t );
00044       ~SVKernelFunction();
00045       
00046       Float_t Evaluate( SVEvent* ev1, SVEvent* ev2 );
00047 
00048       enum EKernelType { kLinear , kRBF, kPolynomial, kSigmoidal };
00049 
00050       void setCompatibilityParams(EKernelType k, UInt_t order, Float_t theta, Float_t kappa);
00051          
00052    private:
00053 
00054       Float_t fGamma;   // documentation
00055 
00056       // kernel, order, theta, and kappa are for backward compatibility
00057       EKernelType fKernel;
00058       UInt_t      fOrder;
00059       Float_t     fTheta;
00060       Float_t     fKappa;
00061    };
00062 }
00063 
00064 #endif

Generated on Tue Jul 5 14:27:39 2011 for ROOT_528-00b_version by  doxygen 1.5.1