Loading [MathJax]/extensions/tex2jax.js
ROOT
6.08/07
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
+
Namespaces
Namespace List
+
Namespace Members
+
All
2
3
<
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
<
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
2
3
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
u
v
x
+
Enumerations
a
d
e
f
g
h
m
p
t
v
w
y
+
Enumerator
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
u
v
w
+
All Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
y
+
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
w
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Properties
f
+
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Files
File List
+
File Members
+
All
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerations
c
e
f
i
l
m
p
r
u
x
+
Enumerator
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
v
w
x
y
z
+
Macros
1
2
3
4
5
6
7
8
9
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
tmva
tmva
inc
TMVA
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
#ifndef ROOT_Rtypes
32
#include "
Rtypes.h
"
33
#endif
34
35
namespace
TMVA
{
36
37
class
SVEvent;
38
class
SVKernelFunction
{
39
40
public
:
41
42
enum
EKernelType
{
kLinear
,
kRBF
,
kPolynomial
,
kSigmoidal
,
kMultiGauss
,
kProd
,
kSum
};
43
44
SVKernelFunction
();
45
SVKernelFunction
(
Float_t
);
46
SVKernelFunction
(
EKernelType
,
Float_t
,
Float_t
=0);
47
SVKernelFunction
( std::vector<float> params );
48
SVKernelFunction
(
EKernelType
k, std::vector<EKernelType> kernels, std::vector<Float_t> gammas,
Float_t
gamma
,
Float_t
order,
Float_t
theta);
49
~SVKernelFunction
();
50
51
Float_t
Evaluate
(
SVEvent
* ev1,
SVEvent
* ev2 );
52
53
void
setCompatibilityParams
(
EKernelType
k,
UInt_t
order,
Float_t
theta,
Float_t
kappa);
54
55
private
:
56
57
Float_t
fGamma
;
// documentation
58
59
// vector of gammas for multidimensional gaussian
60
std::vector<Float_t>
fmGamma
;
61
62
// kernel, order, theta, and kappa are for backward compatibility
63
EKernelType
fKernel
;
64
UInt_t
fOrder
;
65
Float_t
fTheta
;
66
Float_t
fKappa
;
67
68
std::vector<EKernelType>
fKernelsList
;
69
};
70
}
71
72
#endif
TMVA::SVKernelFunction::fGamma
Float_t fGamma
Definition:
SVKernelFunction.h:57
TMVA::SVKernelFunction
Definition:
SVKernelFunction.h:38
Rtypes.h
Float_t
float Float_t
Definition:
RtypesCore.h:53
TMVA::SVKernelFunction::kRBF
Definition:
SVKernelFunction.h:42
TMVA::SVKernelFunction::fTheta
Float_t fTheta
Definition:
SVKernelFunction.h:65
TMVA::SVKernelFunction::setCompatibilityParams
void setCompatibilityParams(EKernelType k, UInt_t order, Float_t theta, Float_t kappa)
set old options for compatibility mode
Definition:
SVKernelFunction.cxx:119
TMVA::SVKernelFunction::fKernelsList
std::vector< EKernelType > fKernelsList
Definition:
SVKernelFunction.h:68
TMVA::SVKernelFunction::fKappa
Float_t fKappa
Definition:
SVKernelFunction.h:66
TMVA::SVKernelFunction::kPolynomial
Definition:
SVKernelFunction.h:42
TMVA::SVKernelFunction::kSigmoidal
Definition:
SVKernelFunction.h:42
TMVA::SVKernelFunction::kMultiGauss
Definition:
SVKernelFunction.h:42
ROOT::Math::Cephes::gamma
double gamma(double x)
Definition:
SpecFuncCephes.cxx:339
UInt_t
unsigned int UInt_t
Definition:
RtypesCore.h:42
TMVA::SVKernelFunction::~SVKernelFunction
~SVKernelFunction()
destructor
Definition:
SVKernelFunction.cxx:110
TMVA::SVKernelFunction::fOrder
UInt_t fOrder
Definition:
SVKernelFunction.h:64
TMVA::SVKernelFunction::kSum
Definition:
SVKernelFunction.h:42
TMVA::SVEvent
Definition:
SVEvent.h:42
TMVA::SVKernelFunction::kProd
Definition:
SVKernelFunction.h:42
TMVA
Abstract ClassifierFactory template that handles arbitrary types.
Definition:
GeneticMinimizer.h:21
TMVA::SVKernelFunction::fKernel
EKernelType fKernel
Definition:
SVKernelFunction.h:63
TMVA::SVKernelFunction::EKernelType
EKernelType
Definition:
SVKernelFunction.h:42
TMVA::SVKernelFunction::fmGamma
std::vector< Float_t > fmGamma
Definition:
SVKernelFunction.h:60
TMVA::SVKernelFunction::kLinear
Definition:
SVKernelFunction.h:42
TMVA::SVKernelFunction::Evaluate
Float_t Evaluate(SVEvent *ev1, SVEvent *ev2)
Definition:
SVKernelFunction.cxx:128
TMVA::SVKernelFunction::SVKernelFunction
SVKernelFunction()
constructor
Definition:
SVKernelFunction.cxx:42