Logo ROOT   6.08/07
Reference Guide
SVKernelMatrix.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 : SVKernelMatrix *
8  * Web : http://tmva.sourceforge.net *
9  * *
10  * Description: *
11  * Kernel matrix 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_SVKernelMatrix
29 #define ROOT_TMVA_SVKernelMatrix
30 
31 #ifndef ROOT_Rtypes
32 #include "Rtypes.h"
33 #endif
34 
35 #include <vector>
36 
37 namespace TMVA {
38 
39  class SVEvent;
40  class SVKernelFunction;
41  class MsgLogger;
42 
44 
45  public:
46 
47  //constructors
49  SVKernelMatrix( std::vector<TMVA::SVEvent*>*, SVKernelFunction* );
50 
51  //destructor
53 
54  //functions
55  Float_t* GetLine ( UInt_t );
56  Float_t* GetColumn ( UInt_t col ) { return this->GetLine(col);}
58 
59  private:
60 
61  UInt_t fSize; // matrix size
62  SVKernelFunction* fKernelFunction; // kernel function
63  Float_t** fSVKernelMatrix; // kernel matrix
64 
65  mutable MsgLogger* fLogger; //! message logger
66  MsgLogger& Log() const { return *fLogger; }
67 
68  };
69 }
70 #endif
Float_t * GetLine(UInt_t)
returns a row of the kernel matrix
float Float_t
Definition: RtypesCore.h:53
SVKernelFunction * fKernelFunction
Float_t ** fSVKernelMatrix
MsgLogger & Log() const
message logger
Float_t GetElement(UInt_t i, UInt_t j)
returns an element of the kernel matrix
~SVKernelMatrix()
destructor
Float_t * GetColumn(UInt_t col)
unsigned int UInt_t
Definition: RtypesCore.h:42
Abstract ClassifierFactory template that handles arbitrary types.
SVKernelMatrix()
constructor