TMVA::MethodFDA Class Reference

#include <MethodFDA.h>

Inheritance diagram for TMVA::MethodFDA:

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

Public Member Functions

 MethodFDA (const TString &jobName, const TString &methodTitle, DataSetInfo &theData, const TString &theOption="", TDirectory *theTargetDir=0)
 MethodFDA (DataSetInfo &theData, const TString &theWeightFile, TDirectory *theTargetDir=NULL)
virtual ~MethodFDA (void)
Bool_t HasAnalysisType (Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets)
void Train (void)
void AddWeightsXMLTo (void *parent) const
void ReadWeightsFromStream (std::istream &i)
void ReadWeightsFromXML (void *wghtnode)
Double_t GetMvaValue (Double_t *err=0, Double_t *errUpper=0)
virtual const std::vector<
Float_t > & 
GetRegressionValues ()
virtual const std::vector<
Float_t > & 
GetMulticlassValues ()
void Init (void)
const RankingCreateRanking ()
Double_t EstimatorFunction (std::vector< Double_t > &)
void CheckSetup ()
 MethodFDA (const TString &jobName, const TString &methodTitle, DataSetInfo &theData, const TString &theOption="", TDirectory *theTargetDir=0)
 MethodFDA (DataSetInfo &theData, const TString &theWeightFile, TDirectory *theTargetDir=NULL)
virtual ~MethodFDA (void)
Bool_t HasAnalysisType (Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets)
void Train (void)
void AddWeightsXMLTo (void *parent) const
void ReadWeightsFromStream (std::istream &i)
void ReadWeightsFromXML (void *wghtnode)
Double_t GetMvaValue (Double_t *err=0, Double_t *errUpper=0)
virtual const std::vector<
Float_t > & 
GetRegressionValues ()
virtual const std::vector<
Float_t > & 
GetMulticlassValues ()
void Init (void)
const RankingCreateRanking ()
Double_t EstimatorFunction (std::vector< Double_t > &)
void CheckSetup ()

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 CalculateMulticlassValues (const TMVA::Event *&evt, std::vector< Double_t > &parameters, std::vector< Float_t > &values)
void CreateFormula ()
Double_t InterpretFormula (const Event *, std::vector< Double_t >::iterator begin, std::vector< Double_t >::iterator end)
void ClearAll ()
void PrintResults (const TString &, std::vector< Double_t > &, const Double_t) const
void DeclareOptions ()
void ProcessOptions ()
void CalculateMulticlassValues (const TMVA::Event *&evt, std::vector< Double_t > &parameters, std::vector< Float_t > &values)
void CreateFormula ()
Double_t InterpretFormula (const Event *, std::vector< Double_t >::iterator begin, std::vector< Double_t >::iterator end)
void ClearAll ()
void PrintResults (const TString &, std::vector< Double_t > &, const Double_t) const
void DeclareOptions ()
void ProcessOptions ()

Private Attributes

TString fFormulaStringP
TString fParRangeStringP
TString fFormulaStringT
TString fParRangeStringT
TFormulafFormula
UInt_t fNPars
std::vector< Interval * > fParRange
std::vector< Double_tfBestPars
TString fFitMethod
TString fConverger
FitterBasefFitter
IFitterTargetfConvergerFitter
Double_t fSumOfWeightsSig
Double_t fSumOfWeightsBkg
Double_t fSumOfWeights
Int_t fOutputDimensions
TFormulafFormula
std::vector< Interval * > fParRange
std::vector< Double_tfBestPars
FitterBasefFitter
IFitterTargetfConvergerFitter

Detailed Description

Definition at line 64 of file MethodFDA.h.


Constructor & Destructor Documentation

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

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

Definition at line 89 of file MethodFDA.cxx.

TMVA::MethodFDA::~MethodFDA ( void   )  [virtual]

Definition at line 308 of file MethodFDA.cxx.

References ClearAll().

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

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

virtual TMVA::MethodFDA::~MethodFDA ( void   )  [virtual]


Member Function Documentation

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

Implements TMVA::IMethod.

Definition at line 315 of file MethodFDA.cxx.

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

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

Implements TMVA::MethodBase.

Definition at line 343 of file MethodFDA.cxx.

References TMVA::MethodBase::DataInfo(), TMVA::MethodBase::DoRegression(), Endl, fBestPars, fConvergerFitter, fFitMethod, fFitter, fParRange, fSumOfWeights, fSumOfWeightsBkg, fSumOfWeightsSig, TMVA::MethodBase::GetEvent(), TMVA::MethodBase::GetNEvents(), TMVA::MethodBase::GetTWeight(), TMVA::kFATAL, TMVA::Configurable::Log(), PrintResults(), TMVA::FitterBase::Run(), and w.

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

Implements TMVA::MethodBase.

Definition at line 598 of file MethodFDA.cxx.

References TMVA::Tools::AddAttr(), TMVA::Tools::AddChild(), fBestPars, fFormulaStringP, fOutputDimensions, and TMVA::gTools().

void TMVA::MethodFDA::ReadWeightsFromStream ( std::istream &  i  )  [virtual]

Implements TMVA::MethodBase.

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

Implements TMVA::MethodBase.

Definition at line 617 of file MethodFDA.cxx.

References CreateFormula(), Endl, fBestPars, fFormulaStringP, fOutputDimensions, TMVA::Tools::GetChild(), TMVA::Tools::GetNextChild(), TMVA::gTools(), TMVA::kFATAL, TMVA::Configurable::Log(), par, and TMVA::Tools::ReadAttr().

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

Implements TMVA::MethodBase.

Definition at line 496 of file MethodFDA.cxx.

References fBestPars, TMVA::MethodBase::GetEvent(), InterpretFormula(), and TMVA::MethodBase::NoErrorCalc().

const std::vector< Float_t > & TMVA::MethodFDA::GetRegressionValues (  )  [virtual]

Reimplemented from TMVA::MethodBase.

Definition at line 508 of file MethodFDA.cxx.

References Event, fBestPars, fNPars, fOutputDimensions, TMVA::MethodBase::fRegressionReturnVal, TMVA::MethodBase::GetEvent(), TMVA::Event::GetTarget(), TMVA::MethodBase::GetTransformationHandler(), InterpretFormula(), TMVA::TransformationHandler::InverseTransform(), NULL, and TMVA::Event::SetTarget().

const std::vector< Float_t > & TMVA::MethodFDA::GetMulticlassValues (  )  [virtual]

Reimplemented from TMVA::MethodBase.

Definition at line 531 of file MethodFDA.cxx.

References CalculateMulticlassValues(), TMVA::MethodBase::DataInfo(), exp(), fBestPars, TMVA::MethodBase::fMulticlassReturnVal, TMVA::MethodBase::GetEvent(), TMVA::DataSetInfo::GetNClasses(), j, norm(), and NULL.

void TMVA::MethodFDA::Init ( void   )  [virtual]

Implements TMVA::MethodBase.

Definition at line 107 of file MethodFDA.cxx.

References TMVA::MethodBase::DoMulticlass(), fBestPars, fConverger, fFitMethod, fFormulaStringP, fFormulaStringT, TMVA::MethodBase::fMulticlassReturnVal, fNPars, fParRangeStringP, fParRangeStringT, fSumOfWeights, fSumOfWeightsBkg, fSumOfWeightsSig, and NULL.

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

Implements TMVA::MethodBase.

Definition at line 101 of file MethodFDA.h.

Double_t TMVA::MethodFDA::EstimatorFunction ( std::vector< Double_t > &   )  [virtual]

Implements TMVA::IFitterTarget.

Definition at line 414 of file MethodFDA.cxx.

References CalculateMulticlassValues(), TMVA::MethodBase::DataInfo(), desired, TMVA::MethodBase::DoMulticlass(), TMVA::MethodBase::DoRegression(), TMVA::MethodBase::fMulticlassReturnVal, fOutputDimensions, fSumOfWeights, fSumOfWeightsBkg, fSumOfWeightsSig, TMVA::MethodBase::GetEvent(), TMVA::MethodBase::GetNEvents(), TMVA::Event::GetTarget(), InterpretFormula(), TMVA::DataSetInfo::IsSignal(), log(), TMath::Power(), result(), t, and y.

void TMVA::MethodFDA::CheckSetup (  )  [inline, virtual]

Reimplemented from TMVA::MethodBase.

Definition at line 106 of file MethodFDA.h.

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

Reimplemented from TMVA::MethodBase.

Definition at line 655 of file MethodFDA.cxx.

References fBestPars, fFormulaStringT, Form(), TMVA::MethodBase::GetNvar(), and str.

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

Implements TMVA::IMethod.

Definition at line 696 of file MethodFDA.cxx.

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

void TMVA::MethodFDA::CalculateMulticlassValues ( const TMVA::Event *&  evt,
std::vector< Double_t > &  parameters,
std::vector< Float_t > &  values 
) [private]

Definition at line 557 of file MethodFDA.cxx.

References fNPars, fOutputDimensions, InterpretFormula(), and value.

Referenced by EstimatorFunction(), and GetMulticlassValues().

void TMVA::MethodFDA::CreateFormula (  )  [private]

Definition at line 161 of file MethodFDA.cxx.

References TFormula::Compile(), TString::Contains(), Endl, fFormula, fFormulaStringP, fFormulaStringT, fNPars, Form(), TFormula::GetNpar(), TMVA::MethodBase::GetNvar(), TMVA::kFATAL, TMVA::Configurable::Log(), TFormula::Optimize(), and TString::ReplaceAll().

Referenced by ProcessOptions(), and ReadWeightsFromXML().

Double_t TMVA::MethodFDA::InterpretFormula ( const Event ,
std::vector< Double_t >::iterator  begin,
std::vector< Double_t >::iterator  end 
) [private]

Definition at line 478 of file MethodFDA.cxx.

References TFormula::Eval(), fFormula, TMVA::MethodBase::GetNvar(), TMVA::Event::GetValue(), result(), and TFormula::SetParameter().

Referenced by CalculateMulticlassValues(), EstimatorFunction(), GetMvaValue(), and GetRegressionValues().

void TMVA::MethodFDA::ClearAll (  )  [private]

Definition at line 326 of file MethodFDA.cxx.

References fBestPars, fFormula, fNPars, and fParRange.

Referenced by ~MethodFDA().

void TMVA::MethodFDA::PrintResults ( const TString ,
std::vector< Double_t > &  ,
const   Double_t 
) const [private]

Definition at line 399 of file MethodFDA.cxx.

References Endl, fFormulaStringP, Form(), TMVA::Tools::FormattedOutput(), TMVA::gTools(), TMVA::kINFO, and TMVA::Configurable::Log().

Referenced by Train().

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

Implements TMVA::MethodBase.

Definition at line 132 of file MethodFDA.cxx.

References TMVA::Configurable::AddPreDefVal(), TMVA::Configurable::DeclareOptionRef(), fConverger, fFitMethod, fFormulaStringP, and fParRangeStringP.

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

Implements TMVA::MethodBase.

Definition at line 222 of file MethodFDA.cxx.

References TMath::Abs(), TList::At(), TMVA::Configurable::CheckForUnusedOptions(), TString::CountChar(), CreateFormula(), TString::Data(), TMVA::MethodBase::DataInfo(), TMVA::MethodBase::DoMulticlass(), TMVA::MethodBase::DoRegression(), Endl, fConverger, fConvergerFitter, fFitMethod, fFitter, fNPars, Form(), fOutputDimensions, fParRange, fParRangeStringP, fParRangeStringT, TMVA::MethodBase::GetName(), TMVA::DataSetInfo::GetNClasses(), TMVA::DataSetInfo::GetNTargets(), TMVA::Configurable::GetOptions(), TCollection::GetSize(), TMVA::gTools(), TMVA::kFATAL, TMVA::kINFO, TMVA::Configurable::Log(), par, TMVA::Tools::ParseFormatLine(), TString::ReplaceAll(), TMVA::Configurable::SetOptions(), and str.

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

Implements TMVA::IMethod.

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

Implements TMVA::MethodBase.

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

Implements TMVA::MethodBase.

void TMVA::MethodFDA::ReadWeightsFromStream ( std::istream &  i  )  [virtual]

Implements TMVA::MethodBase.

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

Implements TMVA::MethodBase.

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

Implements TMVA::MethodBase.

virtual const std::vector<Float_t>& TMVA::MethodFDA::GetRegressionValues (  )  [virtual]

Reimplemented from TMVA::MethodBase.

virtual const std::vector<Float_t>& TMVA::MethodFDA::GetMulticlassValues (  )  [virtual]

Reimplemented from TMVA::MethodBase.

void TMVA::MethodFDA::Init ( void   )  [virtual]

Implements TMVA::MethodBase.

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

Implements TMVA::MethodBase.

Definition at line 101 of file MethodFDA.h.

Double_t TMVA::MethodFDA::EstimatorFunction ( std::vector< Double_t > &   )  [virtual]

Implements TMVA::IFitterTarget.

void TMVA::MethodFDA::CheckSetup (  )  [inline, virtual]

Reimplemented from TMVA::MethodBase.

Definition at line 106 of file MethodFDA.h.

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

Reimplemented from TMVA::MethodBase.

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

Implements TMVA::IMethod.

void TMVA::MethodFDA::CalculateMulticlassValues ( const TMVA::Event *&  evt,
std::vector< Double_t > &  parameters,
std::vector< Float_t > &  values 
) [private]

void TMVA::MethodFDA::CreateFormula (  )  [private]

Double_t TMVA::MethodFDA::InterpretFormula ( const Event ,
std::vector< Double_t >::iterator  begin,
std::vector< Double_t >::iterator  end 
) [private]

void TMVA::MethodFDA::ClearAll (  )  [private]

void TMVA::MethodFDA::PrintResults ( const TString ,
std::vector< Double_t > &  ,
const   Double_t 
) const [private]

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

Implements TMVA::MethodBase.

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

Implements TMVA::MethodBase.


Member Data Documentation

TString TMVA::MethodFDA::fFormulaStringP [private]

Definition at line 136 of file MethodFDA.h.

Referenced by AddWeightsXMLTo(), CreateFormula(), DeclareOptions(), Init(), PrintResults(), and ReadWeightsFromXML().

TString TMVA::MethodFDA::fParRangeStringP [private]

Definition at line 137 of file MethodFDA.h.

Referenced by DeclareOptions(), Init(), and ProcessOptions().

TString TMVA::MethodFDA::fFormulaStringT [private]

Definition at line 138 of file MethodFDA.h.

Referenced by CreateFormula(), Init(), and MakeClassSpecific().

TString TMVA::MethodFDA::fParRangeStringT [private]

Definition at line 139 of file MethodFDA.h.

Referenced by Init(), and ProcessOptions().

TFormula* TMVA::MethodFDA::fFormula [private]

Definition at line 141 of file MethodFDA.h.

Referenced by ClearAll(), CreateFormula(), and InterpretFormula().

UInt_t TMVA::MethodFDA::fNPars [private]

Definition at line 142 of file MethodFDA.h.

Referenced by CalculateMulticlassValues(), ClearAll(), CreateFormula(), GetRegressionValues(), Init(), and ProcessOptions().

std::vector<Interval*> TMVA::MethodFDA::fParRange [private]

Definition at line 143 of file MethodFDA.h.

Referenced by ClearAll(), ProcessOptions(), and Train().

std::vector<Double_t> TMVA::MethodFDA::fBestPars [private]

Definition at line 144 of file MethodFDA.h.

Referenced by AddWeightsXMLTo(), ClearAll(), GetMulticlassValues(), GetMvaValue(), GetRegressionValues(), Init(), MakeClassSpecific(), ReadWeightsFromXML(), and Train().

TString TMVA::MethodFDA::fFitMethod [private]

Definition at line 145 of file MethodFDA.h.

Referenced by DeclareOptions(), Init(), ProcessOptions(), and Train().

TString TMVA::MethodFDA::fConverger [private]

Definition at line 146 of file MethodFDA.h.

Referenced by DeclareOptions(), Init(), and ProcessOptions().

FitterBase* TMVA::MethodFDA::fFitter [private]

Definition at line 147 of file MethodFDA.h.

Referenced by ProcessOptions(), and Train().

IFitterTarget* TMVA::MethodFDA::fConvergerFitter [private]

Definition at line 148 of file MethodFDA.h.

Referenced by ProcessOptions(), and Train().

Double_t TMVA::MethodFDA::fSumOfWeightsSig [private]

Definition at line 152 of file MethodFDA.h.

Referenced by EstimatorFunction(), Init(), and Train().

Double_t TMVA::MethodFDA::fSumOfWeightsBkg [private]

Definition at line 153 of file MethodFDA.h.

Referenced by EstimatorFunction(), Init(), and Train().

Double_t TMVA::MethodFDA::fSumOfWeights [private]

Definition at line 154 of file MethodFDA.h.

Referenced by EstimatorFunction(), Init(), and Train().

Int_t TMVA::MethodFDA::fOutputDimensions [private]

Definition at line 157 of file MethodFDA.h.

Referenced by AddWeightsXMLTo(), CalculateMulticlassValues(), EstimatorFunction(), GetRegressionValues(), ProcessOptions(), and ReadWeightsFromXML().

TFormula* TMVA::MethodFDA::fFormula [private]

Definition at line 141 of file MethodFDA.h.

std::vector<Interval*> TMVA::MethodFDA::fParRange [private]

Definition at line 143 of file MethodFDA.h.

std::vector<Double_t> TMVA::MethodFDA::fBestPars [private]

Definition at line 144 of file MethodFDA.h.

FitterBase* TMVA::MethodFDA::fFitter [private]

Definition at line 147 of file MethodFDA.h.

IFitterTarget* TMVA::MethodFDA::fConvergerFitter [private]

Definition at line 148 of file MethodFDA.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