ROOT logo
ROOT » TMVA » TMVA::SVEvent

class TMVA::SVEvent

Function Members (Methods)

public:
virtual~SVEvent()
static TClass*Class()
Float_tGetAlpha() const
Float_tGetAlpha_p() const
Float_tGetCweight() const
vector<Float_t>*GetDataVector()
Float_tGetDeltaAlpha() const
Float_tGetErrorCache() const
Int_tGetIdx() const
Float_t*GetLine() const
UInt_tGetNs() const
Int_tGetNVar() const
Float_tGetTarget() const
Int_tGetTypeFlag() const
virtual TClass*IsA() const
Bool_tIsInI0() const
Bool_tIsInI0a() const
Bool_tIsInI0b() const
Bool_tIsInI1() const
Bool_tIsInI2() const
Bool_tIsInI3() const
voidPrint(ostream& os) const
voidPrintData()
voidSetAlpha(Float_t alpha)
voidSetAlpha_p(Float_t alpha)
voidSetErrorCache(Float_t err_cache)
voidSetIdx(Int_t idx)
voidSetIsShrinked(Int_t isshrinked)
voidSetLine(Float_t* line)
voidSetNs(UInt_t ns)
virtual voidShowMembers(TMemberInspector& insp)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
TMVA::SVEventSVEvent()
TMVA::SVEventSVEvent(const TMVA::SVEvent&)
TMVA::SVEventSVEvent(const TMVA::Event*, Float_t, Bool_t isSignal = kFALSE)
TMVA::SVEventSVEvent(const vector<Float_t>*, Float_t alpha, Int_t typeFlag, UInt_t ns)
TMVA::SVEventSVEvent(const vector<Float_t>* svector, Float_t alpha, Float_t alpha_p, Int_t typeFlag)
voidUpdateErrorCache(Float_t upercache)

Data Members

private:
Float_tfAlphalagrange multiplier
Float_tfAlpha_plagrange multiplier
const Float_tfCweightsvm cost weight
vector<Float_t>fDataVector
Float_tfErrorCacheoptimization parameter
Int_tfIdxindex flag
Int_tfIsShrinkedshrinking flag, see documentation
Float_t*fLinepointer to column of kerenl matrix
UInt_tfNVarnumber of variables
UInt_tfNsdocumentation
const Float_tfTargetregression target
const Int_tfTypeFlagis sig or bkg - svm requieres 1 for sig and -1 for bkg

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

SVEvent()
SVEvent(const TMVA::Event* , Float_t , Bool_t isSignal = kFALSE)
 constructor
SVEvent(const vector<Float_t>* , Float_t alpha, Int_t typeFlag, UInt_t ns)
 constructor
SVEvent(const vector<Float_t>* svector, Float_t alpha, Float_t alpha_p, Int_t typeFlag)
 constructor
~SVEvent()
 destructor
void Print(ostream& os) const
 printout
void PrintData()
 printout
SVEvent()
void SetAlpha(Float_t alpha)
{ fAlpha = alpha; }
void SetAlpha_p(Float_t alpha)
{ fAlpha_p = alpha; }
void SetErrorCache(Float_t err_cache)
{ fErrorCache = err_cache; }
void SetIsShrinked(Int_t isshrinked)
{ fIsShrinked = isshrinked; }
void SetLine(Float_t* line)
{ fLine = line; }
void SetIdx(Int_t idx)
{ fIdx = idx; }
void SetNs(UInt_t ns)
{ fNs = ns; }
void UpdateErrorCache(Float_t upercache)
{ fErrorCache += upercache; }
std::vector<Float_t>* GetDataVector()
{ return &fDataVector; }
Float_t GetAlpha() const
{ return fAlpha; }
Float_t GetAlpha_p() const
{ return fAlpha_p; }
Float_t GetDeltaAlpha() const
{ return fAlpha - fAlpha_p; }
Float_t GetErrorCache() const
{ return fErrorCache; }
Int_t GetTypeFlag() const
{ return fTypeFlag; }
Int_t GetNVar() const
{ return fNVar; }
Int_t GetIdx() const
{ return fIdx;}
Float_t* GetLine() const
{ return fLine;}
UInt_t GetNs() const
{ return fNs;}
Float_t GetCweight() const
{ return fCweight;}
Float_t GetTarget() const
{ return fTarget;}
Bool_t IsInI0a() const
{ return (0.< fAlpha) && (fAlpha<fCweight); }
Bool_t IsInI0b() const
{ return (0.< fAlpha) && (fAlpha_p<fCweight); }
Bool_t IsInI0() const
{ return (IsInI0a() || IsInI0b()); }
Bool_t IsInI1() const
{ return (fAlpha == 0. && fAlpha_p == 0.); }
Bool_t IsInI2() const
{ return (fAlpha == 0. && fAlpha_p == fCweight); }
Bool_t IsInI3() const
{ return (fAlpha == fCweight && fAlpha_p == 0.); }