41 ClassImp(TMVA::SVEvent);
43 TMVA::SVEvent::SVEvent()
62 TMVA::SVEvent::SVEvent(
const Event* event, Float_t C_par, Bool_t isSignal )
63 : fDataVector(event->GetValues()),
64 fCweight(C_par*event->GetWeight()),
68 fNVar ( event->GetNVariables() ),
69 fTypeFlag( isSignal ? -1 : 1 ),
70 fIdx ( isSignal ? -1 : 1 ),
74 fTarget((event->GetNTargets() > 0 ? event->GetTarget(0) : 0))
81 TMVA::SVEvent::SVEvent(
const std::vector<Float_t>* svector, Float_t alpha, Int_t typeFlag, UInt_t ns )
82 : fDataVector(*svector),
87 fNVar(svector->size()),
100 TMVA::SVEvent::SVEvent(
const std::vector<Float_t>* svector, Float_t alpha, Float_t alpha_p,Int_t typeFlag)
101 : fDataVector(*svector),
106 fNVar(svector->size()),
119 TMVA::SVEvent::~SVEvent()
130 void TMVA::SVEvent::Print( std::ostream& os )
const
132 os <<
"type::" << fTypeFlag <<
" target::"<< fTarget <<
" alpha::" << fAlpha <<
" alpha_p::"<< fAlpha_p<<
" values::" ;
133 for (UInt_t j =0; j < fDataVector.size();j++) os<<fDataVector.at(j)<<
" ";
140 void TMVA::SVEvent::PrintData()
142 for (UInt_t i = 0; i < fNVar; i++) std::cout<<fDataVector.at(i)<<
" ";
143 std::cout<<std::endl;