TMVA::MethodHMatrix Class Reference

#include <MethodHMatrix.h>

Inheritance diagram for TMVA::MethodHMatrix:

TMVA::MethodBase TMVA::MethodBase TMVA::Configurable TMVA::IMethod TMVA::Configurable TMVA::IMethod TMVA::Configurable TMVA::IMethod TMVA::Configurable TMVA::IMethod List of all members.

Public Member Functions

 MethodHMatrix (const TString &jobName, const TString &methodTitle, DataSetInfo &theData, const TString &theOption="", TDirectory *theTargetDir=0)
 MethodHMatrix (DataSetInfo &theData, const TString &theWeightFile, TDirectory *theTargetDir=NULL)
virtual ~MethodHMatrix ()
virtual Bool_t HasAnalysisType (Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets)
void Train ()
void AddWeightsXMLTo (void *parent) const
void ReadWeightsFromStream (istream &istr)
void ReadWeightsFromXML (void *wghtnode)
Double_t GetMvaValue (Double_t *err=0, Double_t *errUpper=0)
const RankingCreateRanking ()
 MethodHMatrix (const TString &jobName, const TString &methodTitle, DataSetInfo &theData, const TString &theOption="", TDirectory *theTargetDir=0)
 MethodHMatrix (DataSetInfo &theData, const TString &theWeightFile, TDirectory *theTargetDir=NULL)
virtual ~MethodHMatrix ()
virtual Bool_t HasAnalysisType (Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets)
void Train ()
void AddWeightsXMLTo (void *parent) const
void ReadWeightsFromStream (istream &istr)
void ReadWeightsFromXML (void *wghtnode)
Double_t GetMvaValue (Double_t *err=0, Double_t *errUpper=0)
const RankingCreateRanking ()

Protected Member Functions

void MakeClassSpecific (std::ostream &, const TString &) const
void GetHelpMessage () const
void MakeClassSpecific (std::ostream &, const TString &) const
void GetHelpMessage () const

Private Member Functions

void DeclareOptions ()
void ProcessOptions ()
Double_t GetChi2 (Event *e, Types::ESBType) const
Double_t GetChi2 (Types::ESBType) const
void ComputeCovariance (Bool_t, TMatrixD *)
void Init ()
void DeclareOptions ()
void ProcessOptions ()
Double_t GetChi2 (Event *e, Types::ESBType) const
Double_t GetChi2 (Types::ESBType) const
void ComputeCovariance (Bool_t, TMatrixD *)
void Init ()

Private Attributes

TMatrixDfInvHMatrixS
TMatrixDfInvHMatrixB
TVectorDfVecMeanS
TVectorDfVecMeanB
TMatrixDfInvHMatrixS
TMatrixDfInvHMatrixB
TVectorDfVecMeanS
TVectorDfVecMeanB

Detailed Description

Definition at line 62 of file MethodHMatrix.h.


Constructor & Destructor Documentation

TMVA::MethodHMatrix::MethodHMatrix ( const TString jobName,
const TString methodTitle,
DataSetInfo theData,
const TString theOption = "",
TDirectory theTargetDir = 0 
)

TMVA::MethodHMatrix::MethodHMatrix ( DataSetInfo theData,
const TString theWeightFile,
TDirectory theTargetDir = NULL 
)

Definition at line 78 of file MethodHMatrix.cxx.

TMVA::MethodHMatrix::~MethodHMatrix (  )  [virtual]

Definition at line 103 of file MethodHMatrix.cxx.

References fInvHMatrixB, fInvHMatrixS, fVecMeanB, fVecMeanS, and NULL.

TMVA::MethodHMatrix::MethodHMatrix ( const TString jobName,
const TString methodTitle,
DataSetInfo theData,
const TString theOption = "",
TDirectory theTargetDir = 0 
)

TMVA::MethodHMatrix::MethodHMatrix ( DataSetInfo theData,
const TString theWeightFile,
TDirectory theTargetDir = NULL 
)

virtual TMVA::MethodHMatrix::~MethodHMatrix (  )  [virtual]


Member Function Documentation

Bool_t TMVA::MethodHMatrix::HasAnalysisType ( Types::EAnalysisType  type,
UInt_t  numberClasses,
UInt_t  numberTargets 
) [virtual]

Implements TMVA::IMethod.

Definition at line 113 of file MethodHMatrix.cxx.

References TMVA::Types::kClassification, kFALSE, and kTRUE.

void TMVA::MethodHMatrix::Train (  )  [virtual]

Implements TMVA::MethodBase.

Definition at line 134 of file MethodHMatrix.cxx.

References TMath::Abs(), ComputeCovariance(), TMatrixT< Element >::Determinant(), E, Endl, fInvHMatrixB, fInvHMatrixS, TMatrixT< Element >::Invert(), kFALSE, TMVA::kFATAL, kTRUE, TMVA::kWARNING, and TMVA::Configurable::Log().

void TMVA::MethodHMatrix::AddWeightsXMLTo ( void *  parent  )  const [virtual]

Implements TMVA::MethodBase.

Definition at line 314 of file MethodHMatrix.cxx.

References TMVA::Tools::AddChild(), fInvHMatrixB, fInvHMatrixS, fVecMeanB, fVecMeanS, TMVA::gTools(), TMVA::Tools::WriteTMatrixDToXML(), and TMVA::Tools::WriteTVectorDToXML().

void TMVA::MethodHMatrix::ReadWeightsFromStream ( istream &  istr  ) 

Definition at line 335 of file MethodHMatrix.cxx.

References dummy, fInvHMatrixB, fInvHMatrixS, fVecMeanB, fVecMeanS, and TMVA::MethodBase::GetNvar().

void TMVA::MethodHMatrix::ReadWeightsFromXML ( void *  wghtnode  )  [virtual]

Implements TMVA::MethodBase.

Definition at line 323 of file MethodHMatrix.cxx.

References fInvHMatrixB, fInvHMatrixS, fVecMeanB, fVecMeanS, TMVA::Tools::GetChild(), TMVA::Tools::GetNextChild(), TMVA::gTools(), TMVA::Tools::ReadTMatrixDFromXML(), and TMVA::Tools::ReadTVectorDFromXML().

Double_t TMVA::MethodHMatrix::GetMvaValue ( Double_t err = 0,
Double_t errUpper = 0 
) [virtual]

Implements TMVA::MethodBase.

Definition at line 238 of file MethodHMatrix.cxx.

References b, Endl, GetChi2(), TMVA::Types::kBackground, TMVA::kFATAL, TMVA::Types::kSignal, TMVA::Configurable::Log(), TMVA::MethodBase::NoErrorCalc(), and s.

const Ranking* TMVA::MethodHMatrix::CreateRanking (  )  [inline, virtual]

Implements TMVA::MethodBase.

Definition at line 95 of file MethodHMatrix.h.

void TMVA::MethodHMatrix::MakeClassSpecific ( std::ostream &  ,
const TString  
) const [protected, virtual]

Reimplemented from TMVA::MethodBase.

Definition at line 361 of file MethodHMatrix.cxx.

References fInvHMatrixS, fVecMeanS, TMVA::MethodBase::GetNvar(), TMVA::Types::kBackground, and TMVA::Types::kSignal.

void TMVA::MethodHMatrix::GetHelpMessage (  )  const [protected, virtual]

Implements TMVA::IMethod.

Definition at line 436 of file MethodHMatrix.cxx.

References TMVA::Tools::Color(), Endl, TMVA::gTools(), and TMVA::Configurable::Log().

void TMVA::MethodHMatrix::DeclareOptions (  )  [private, virtual]

Implements TMVA::MethodBase.

Definition at line 122 of file MethodHMatrix.cxx.

void TMVA::MethodHMatrix::ProcessOptions (  )  [private, virtual]

Implements TMVA::MethodBase.

Definition at line 128 of file MethodHMatrix.cxx.

Double_t TMVA::MethodHMatrix::GetChi2 ( Event e,
Types::ESBType   
) const [private]

Definition at line 253 of file MethodHMatrix.cxx.

References Endl, TMVA::MethodBase::GetNvar(), TMVA::Event::GetValue(), TMVA::MethodBase::GetXmax(), TMVA::MethodBase::GetXmin(), TMVA::gTools(), TMVA::MethodBase::IsNormalised(), TMVA::kFATAL, TMVA::Types::kSignal, TMVA::Configurable::Log(), TMVA::Tools::NormVariable(), and val.

Referenced by GetMvaValue().

Double_t TMVA::MethodHMatrix::GetChi2 ( Types::ESBType   )  const [private]

Definition at line 284 of file MethodHMatrix.cxx.

References Endl, TMVA::MethodBase::GetEvent(), TMVA::MethodBase::GetNvar(), TMVA::Event::GetValue(), TMVA::kFATAL, TMVA::Types::kSignal, TMVA::Configurable::Log(), and val.

void TMVA::MethodHMatrix::ComputeCovariance ( Bool_t  ,
TMatrixD  
) [private]

Definition at line 175 of file MethodHMatrix.cxx.

References TMVA::MethodBase::Data(), TMVA::MethodBase::DataInfo(), fVecMeanB, fVecMeanS, TMVA::MethodBase::GetEvent(), TMVA::DataSet::GetNEvents(), TMVA::DataSetInfo::GetNVariables(), i, TMVA::MethodBase::IgnoreEventsWithNegWeightsInTraining(), TMVA::Types::kTraining, and TMVA::DataSet::SetCurrentType().

Referenced by Train().

void TMVA::MethodHMatrix::Init (  )  [private, virtual]

Implements TMVA::MethodBase.

Definition at line 87 of file MethodHMatrix.cxx.

References fInvHMatrixB, fInvHMatrixS, fVecMeanB, fVecMeanS, TMVA::MethodBase::GetNvar(), and TMVA::MethodBase::SetSignalReferenceCut().

virtual Bool_t TMVA::MethodHMatrix::HasAnalysisType ( Types::EAnalysisType  type,
UInt_t  numberClasses,
UInt_t  numberTargets 
) [virtual]

Implements TMVA::IMethod.

void TMVA::MethodHMatrix::Train (  )  [virtual]

Implements TMVA::MethodBase.

void TMVA::MethodHMatrix::AddWeightsXMLTo ( void *  parent  )  const [virtual]

Implements TMVA::MethodBase.

void TMVA::MethodHMatrix::ReadWeightsFromStream ( istream &  istr  ) 

void TMVA::MethodHMatrix::ReadWeightsFromXML ( void *  wghtnode  )  [virtual]

Implements TMVA::MethodBase.

Double_t TMVA::MethodHMatrix::GetMvaValue ( Double_t err = 0,
Double_t errUpper = 0 
) [virtual]

Implements TMVA::MethodBase.

const Ranking* TMVA::MethodHMatrix::CreateRanking (  )  [inline, virtual]

Implements TMVA::MethodBase.

Definition at line 95 of file MethodHMatrix.h.

void TMVA::MethodHMatrix::MakeClassSpecific ( std::ostream &  ,
const TString  
) const [protected, virtual]

Reimplemented from TMVA::MethodBase.

void TMVA::MethodHMatrix::GetHelpMessage (  )  const [protected, virtual]

Implements TMVA::IMethod.

void TMVA::MethodHMatrix::DeclareOptions (  )  [private, virtual]

Implements TMVA::MethodBase.

void TMVA::MethodHMatrix::ProcessOptions (  )  [private, virtual]

Implements TMVA::MethodBase.

Double_t TMVA::MethodHMatrix::GetChi2 ( Event e,
Types::ESBType   
) const [private]

Double_t TMVA::MethodHMatrix::GetChi2 ( Types::ESBType   )  const [private]

void TMVA::MethodHMatrix::ComputeCovariance ( Bool_t  ,
TMatrixD  
) [private]

void TMVA::MethodHMatrix::Init (  )  [private, virtual]

Implements TMVA::MethodBase.


Member Data Documentation

TMatrixD* TMVA::MethodHMatrix::fInvHMatrixS [private]

Definition at line 119 of file MethodHMatrix.h.

Referenced by AddWeightsXMLTo(), Init(), MakeClassSpecific(), ReadWeightsFromStream(), ReadWeightsFromXML(), Train(), and ~MethodHMatrix().

TMatrixD* TMVA::MethodHMatrix::fInvHMatrixB [private]

Definition at line 120 of file MethodHMatrix.h.

Referenced by AddWeightsXMLTo(), Init(), ReadWeightsFromStream(), ReadWeightsFromXML(), Train(), and ~MethodHMatrix().

TVectorD* TMVA::MethodHMatrix::fVecMeanS [private]

Definition at line 121 of file MethodHMatrix.h.

Referenced by AddWeightsXMLTo(), ComputeCovariance(), Init(), MakeClassSpecific(), ReadWeightsFromStream(), ReadWeightsFromXML(), and ~MethodHMatrix().

TVectorD* TMVA::MethodHMatrix::fVecMeanB [private]

Definition at line 122 of file MethodHMatrix.h.

Referenced by AddWeightsXMLTo(), ComputeCovariance(), Init(), ReadWeightsFromStream(), ReadWeightsFromXML(), and ~MethodHMatrix().

TMatrixD* TMVA::MethodHMatrix::fInvHMatrixS [private]

Definition at line 119 of file MethodHMatrix.h.

TMatrixD* TMVA::MethodHMatrix::fInvHMatrixB [private]

Definition at line 120 of file MethodHMatrix.h.

TVectorD* TMVA::MethodHMatrix::fVecMeanS [private]

Definition at line 121 of file MethodHMatrix.h.

TVectorD* TMVA::MethodHMatrix::fVecMeanB [private]

Definition at line 122 of file MethodHMatrix.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 17:01:28 2011 for ROOT_528-00b_version by  doxygen 1.5.1