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);
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)
LongDouble_t Power(LongDouble_t x, LongDouble_t y)