Logo ROOT  
Reference Guide
SVKernelFunction.h
Go to the documentation of this file.
1// @(#)root/tmva $Id$
2// Author: Andrzej Zemla
3
4/**********************************************************************************
5 * Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6 * Package: TMVA *
7 * Class : SVKernelFunction *
8 * Web : http://tmva.sourceforge.net *
9 * *
10 * Description: *
11 * Kernel for Support Vector Machine *
12 * *
13 * Authors (alphabetical): *
14 * Marcin Wolter <Marcin.Wolter@cern.ch> - IFJ PAN, Krakow, Poland *
15 * Andrzej Zemla <azemla@cern.ch> - IFJ PAN, Krakow, Poland *
16 * (IFJ PAN: Henryk Niewodniczanski Inst. Nucl. Physics, Krakow, Poland) *
17 * *
18 * Copyright (c) 2005: *
19 * CERN, Switzerland *
20 * MPI-K Heidelberg, Germany *
21 * PAN, Krakow, Poland *
22 * *
23 * Redistribution and use in source and binary forms, with or without *
24 * modification, are permitted according to the terms listed in LICENSE *
25 * (http://tmva.sourceforge.net/LICENSE) *
26 **********************************************************************************/
27
28#ifndef ROOT_TMVA_SVKernelFunction
29#define ROOT_TMVA_SVKernelFunction
30
31#include "Rtypes.h"
32
33namespace TMVA {
34
35 class SVEvent;
37
38 public:
39
41
45 SVKernelFunction( std::vector<float> params );
46 SVKernelFunction(EKernelType k, std::vector<EKernelType> kernels, std::vector<Float_t> gammas, Float_t gamma, Float_t order, Float_t theta);
48
49 Float_t Evaluate( SVEvent* ev1, SVEvent* ev2 );
50
51 void setCompatibilityParams(EKernelType k, UInt_t order, Float_t theta, Float_t kappa);
52
53 private:
54
55 Float_t fGamma; // documentation
56
57 // vector of gammas for multidimensional gaussian
58 std::vector<Float_t> fmGamma;
59
60 // kernel, order, theta, and kappa are for backward compatibility
65
66 std::vector<EKernelType> fKernelsList;
67 };
68}
69
70#endif
unsigned int UInt_t
Definition: RtypesCore.h:42
float Float_t
Definition: RtypesCore.h:53
Event class for Support Vector Machine.
Definition: SVEvent.h:40
Kernel for Support Vector Machine.
std::vector< EKernelType > fKernelsList
std::vector< Float_t > fmGamma
void setCompatibilityParams(EKernelType k, UInt_t order, Float_t theta, Float_t kappa)
set old options for compatibility mode
Float_t Evaluate(SVEvent *ev1, SVEvent *ev2)
double gamma(double x)
create variable transformations