90 for( std::vector<float>::const_iterator iter = params.begin(); iter != params.end()\
118 fKernelsList.clear();
142 for (
UInt_t i = 0; i <
v1->size(); i++) norm += ((*
v1)[i] -(*
v2)[i]) *((*v1)[i] -(*v2)[i]) ;
154 if(fmGamma.size() !=
v1->size()){
155 std::cout <<
"Fewer gammas than input variables! #Gammas= " << fmGamma.size() <<
" #Input variables= " <<
v1->size() << std::endl;
156 std::cout <<
"***> abort program execution" << std::endl;
161 for (
UInt_t i = 0; i <
v1->size(); i++) {
173 for (
UInt_t idx = 0; idx <
v1->size(); idx++) prod += (*
v1)[idx] * (*v2)[idx];
187 for (
UInt_t i = 0; i <
v1->size(); i++) prod += (*
v1)[i] * (*v2)[i];
198 for (
UInt_t i = 0; i <
v1->size(); i++) prod += ((*
v1)[i] -(*
v2)[i]) *((*v1)[i] -(*v2)[i]) ;
211 for(
UInt_t i = 0; i<fKernelsList.size(); i++){
212 fKernel = fKernelsList.at(i);
226 for(
UInt_t i = 0; i<fKernelsList.size(); i++){
227 fKernel = fKernelsList.at(i);
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
Event class for Support Vector Machine.
std::vector< Float_t > * GetDataVector()
std::vector< EKernelType > fKernelsList
SVKernelFunction()
constructor
std::vector< Float_t > fmGamma
void setCompatibilityParams(EKernelType k, UInt_t order, Float_t theta, Float_t kappa)
set old options for compatibility mode
~SVKernelFunction()
destructor
Float_t Evaluate(SVEvent *ev1, SVEvent *ev2)
Double_t Exp(Double_t x)
Returns the base-e exponential function of x, which is e raised to the power x.
Double_t TanH(Double_t)
Returns the hyperbolic tangent of x.
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
Returns x raised to the power y.