Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 "RtypesCore.h"
32#include <vector>
33
34namespace TMVA {
35
36 class SVEvent;
38
39 public:
40
42
46 SVKernelFunction( std::vector<float> params );
47 SVKernelFunction(EKernelType k, std::vector<EKernelType> kernels, std::vector<Float_t> gammas, Float_t gamma, Float_t order, Float_t theta);
49
50 Float_t Evaluate( SVEvent* ev1, SVEvent* ev2 );
51
52 void setCompatibilityParams(EKernelType k, UInt_t order, Float_t theta, Float_t kappa);
53
54 private:
55
56 Float_t fGamma; // documentation
57
58 // vector of gammas for multidimensional gaussian
59 std::vector<Float_t> fmGamma;
60
61 // kernel, order, theta, and kappa are for backward compatibility
66
67 std::vector<EKernelType> fKernelsList;
68 };
69}
70
71#endif
unsigned int UInt_t
Definition RtypesCore.h:46
float Float_t
Definition RtypesCore.h:57
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)
create variable transformations