57 fLogger( new
MsgLogger(
"ResultsRegression", kINFO) )
66 fKernelFunction(kernelFunction),
67 fLogger( new
MsgLogger(
"SVKernelMatrix", kINFO) )
73 Log() << kFATAL <<
"Input data too large. Not enough memory to allocate memory for Support Vector Kernel Matrix. Please reduce the number of input events or use a different method."<<
Endl;
78 for (
UInt_t j = 0; j <=i; j++) {
90 delete[] fSVKernelMatrix[i];
91 fSVKernelMatrix[i] = 0;
93 delete[] fSVKernelMatrix;
109 fLine[i] = fSVKernelMatrix[
line][i];
111 fLine[i] = fSVKernelMatrix[i][
line];
121 if (i > j)
return fSVKernelMatrix[i][j];
122 else return fSVKernelMatrix[j][i];
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
ostringstream derivative to redirect and format output
Kernel for Support Vector Machine.
Float_t Evaluate(SVEvent *ev1, SVEvent *ev2)
Float_t GetElement(UInt_t i, UInt_t j)
returns an element of the kernel matrix
SVKernelMatrix()
constructor
~SVKernelMatrix()
destructor
Float_t * GetLine(UInt_t)
returns a row of the kernel matrix
Float_t ** fSVKernelMatrix
kernel matrix
SVKernelFunction * fKernelFunction
kernel function
MsgLogger & Endl(MsgLogger &ml)