class TMVA::VariablePCATransform: public TMVA::VariableTransformBase


PCA transformation of input variables (uses Root's principal
component analysis TPrincipal)


Function Members (Methods)

public:
virtual~VariablePCATransform()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidApplyTransformation(TMVA::Types::ESBType type = Types::kMaxSBType) const
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
voidTMVA::VariableTransformBase::CreateEvent() const
virtual voidTObject::Delete(Option_t* option = "")
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
virtual voidTObject::Dump() const
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
Int_tTMVA::VariableTransformBase::FindVar(const TString& var) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual TMVA::Event&TMVA::VariableTransformBase::GetEvent() const
TMVA::Event&TMVA::VariableTransformBase::GetEventRaw() const
virtual const char*TObject::GetIconName() const
virtual const char*TMVA::VariableTransformBase::GetName() const
UInt_tTMVA::VariableTransformBase::GetNVariables() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TObject::GetTitle() const
virtual vector<TString>*GetTransformationStrings(TMVA::Types::ESBType type = Types::kMaxSBType) const
virtual UInt_tTObject::GetUniqueID() const
TMVA::Ranking*TMVA::VariableTransformBase::GetVariableRanking() const
TMVA::Types::EVariableTransformTMVA::VariableTransformBase::GetVariableTransform() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() const
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
Bool_tTMVA::VariableTransformBase::IsCreated() const
Bool_tTMVA::VariableTransformBase::IsEnabled() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTMVA::VariableTransformBase::IsNormalised() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
virtual voidMakeFunction(ostream& fout, const TString& fncName, Int_t part)
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TObject&TObject::operator=(const TObject& rhs)
virtual voidTObject::Paint(Option_t* option = "")
voidTMVA::VariableTransformBase::PlotVariables(TTree* theTree)
virtual voidTObject::Pop()
virtual Bool_tPrepareTransformation(TTree* inputTree)
virtual voidTObject::Print(Option_t* option = "") const
virtual voidTMVA::VariableTransformBase::PrintTransformation(ostream&)
voidTMVA::VariableTransformBase::PrintVariableRanking() const
virtual Int_tTObject::Read(const char* name)
Bool_tTMVA::VariableTransformBase::ReadEvent(TTree* tr, UInt_t evidx, TMVA::Types::ESBType type) const
virtual voidReadTransformationFromStream(istream&)
voidTMVA::VariableTransformBase::ReadVarsFromStream(istream& istr)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")
static voidTObject::SetDtorOnly(void* obj)
voidTMVA::VariableTransformBase::SetEnabled(Bool_t e)
voidTMVA::VariableTransformBase::SetNormalise(Bool_t n)
static voidTObject::SetObjectStat(Bool_t stat)
voidTMVA::VariableTransformBase::SetRootOutputBaseDir(TDirectory* dir)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidTMVA::VariableTransformBase::SetUseSignalTransform(Bool_t e = kTRUE)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
const TMVA::VariableInfo&TMVA::VariableTransformBase::Variable(Int_t ivar) const
TMVA::VariableInfo&TMVA::VariableTransformBase::Variable(Int_t ivar)
const TMVA::VariableInfo&TMVA::VariableTransformBase::Variable(const TString& var) const
TMVA::VariableInfo&TMVA::VariableTransformBase::Variable(const TString& var)
TMVA::VariablePCATransformVariablePCATransform(vector<TMVA::VariableInfo>&)
const vector<TMVA::VariableInfo>&TMVA::VariableTransformBase::Variables() const
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
virtual voidWriteTransformationToStream(ostream&) const
voidTMVA::VariableTransformBase::WriteVarsToStream(ostream& o, const TString& prefix = "") const
protected:
voidTMVA::VariableTransformBase::CalcNorm(TTree*)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
TDirectory*TMVA::VariableTransformBase::GetOutputBaseDir() const
voidTObject::MakeZombie()
voidTMVA::VariableTransformBase::ResetBranchAddresses(TTree* tree) const
voidTMVA::VariableTransformBase::SetCreated(Bool_t c = kTRUE)
voidTMVA::VariableTransformBase::SetName(const TString& c)
private:
voidCalculatePrincipalComponents(TTree* originalTree)
voidX2P(const Double_t*, Double_t*, Int_t index) const

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
TMVA::Event*TMVA::VariableTransformBase::fEventthis is the event
TMVA::Event*TMVA::VariableTransformBase::fEventRawthis is the untransformed event
TMVA::MsgLoggerTMVA::VariableTransformBase::fLoggermessage logger
Bool_tTMVA::VariableTransformBase::fUseSignalTransformtrue if transformation bases on signal data
private:
TMatrixD*fEigenVectors[2]eigenvectors
TVectorD*fMeanValues[2]mean values
TPrincipal*fPCA[2]! PCA [signal/background]

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

VariablePCATransform(vector<TMVA::VariableInfo>& )
 constructor
~VariablePCATransform()
 destructor
Bool_t PrepareTransformation(TTree* inputTree)
 calculate the principal components using the ROOT class TPrincipal
 and the normalization
void ApplyTransformation(TMVA::Types::ESBType type = Types::kMaxSBType) const
 apply the principal component analysis
void CalculatePrincipalComponents(TTree* originalTree)
 calculate the principal components for the signal and the background data
 it uses the MakePrincipal method of ROOT's TPrincipal class
std::vector<TString>* GetTransformationStrings(TMVA::Types::ESBType type = Types::kMaxSBType) const
 creates string with variable transformations applied
void X2P(const Double_t* , Double_t* , Int_t index) const
 Calculate the principal components from the original data vector
 x, and return it in p (function extracted from TPrincipal::X2P)
 It's the users responsibility to make sure that both x and p are
 of the right size (i.e., memory must be allocated for p).
void WriteTransformationToStream(ostream& ) const
 write mean values to stream
void ReadTransformationFromStream(istream& )
 Read mean values from input stream
void MakeFunction(ostream& fout, const TString& fncName, Int_t part)
 creates a PCA transformation function

Author: Andreas Hoecker, Joerg Stelzer, Helge Voss
Last update: root/tmva $Id: VariablePCATransform.h 21630 2008-01-10 19:40:44Z brun $
Copyright (c) 2005: *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.