StatDialogBDT Class Reference

List of all members.

Public Member Functions

 StatDialogBDT (const TGWindow *p, TString wfile="weights/TMVAClassification_BDT.weights.txt", TString methName="BDT", Int_t itree=0)
virtual ~StatDialogBDT ()
void DrawTree (Int_t itree)
void RaiseDialog ()
void SetItree ()
void Redraw ()
void Close ()
 StatDialogBDT (const TGWindow *p, TString wfile="weights/TMVARegression_BDT.weights.xml", TString methName="BDT", Int_t itree=0)
virtual ~StatDialogBDT ()
void DrawTree (Int_t itree)
void RaiseDialog ()
void SetItree ()
void Redraw ()
void Close ()

Static Public Member Functions

static void Delete ()
static void Delete ()

Private Member Functions

void UpdateCanvases ()
TMVA::DecisionTreeReadTree (TString *&vars, Int_t itree)
void DrawNode (TMVA::DecisionTreeNode *n, Double_t x, Double_t y, Double_t xscale, Double_t yscale, TString *vars)
void GetNtrees ()
void UpdateCanvases ()
TMVA::DecisionTreeReadTree (TString *&vars, Int_t itree)
void DrawNode (TMVA::DecisionTreeNode *n, Double_t x, Double_t y, Double_t xscale, Double_t yscale, TString *vars)
void GetNtrees ()

Private Attributes

TGMainFramefMain
Int_t fItree
Int_t fNtrees
TCanvasfCanvas
TGNumberEntryfInput
TGHorizontalFramefButtons
TGTextButtonfDrawButton
TGTextButtonfCloseButton
TString fWfile
TString fMethName
TGMainFramefMain
TCanvasfCanvas
TGNumberEntryfInput
TGHorizontalFramefButtons
TGTextButtonfDrawButton
TGTextButtonfCloseButton

Static Private Attributes

static StatDialogBDTfThis
static StatDialogBDTfThis

Detailed Description

Definition at line 46 of file BDT.C.


Constructor & Destructor Documentation

StatDialogBDT::StatDialogBDT ( const TGWindow p,
TString  wfile = "weights/TMVAClassification_BDT.weights.txt",
TString  methName = "BDT",
Int_t  itree = 0 
)

Definition at line 125 of file BDT.C.

References TGCompositeFrame::AddFrame(), TQObject::Connect(), fButtons, fCloseButton, fDrawButton, TMVA::DecisionTreeNode::fgIsTraining, fInput, fItree, fMain, fNtrees, Form(), fThis, TGCompositeFrame::GetDefaultSize(), GetNtrees(), kLHintsBottom, kLHintsLeft, kLHintsRight, kLHintsTop, kMainFrame, TGNumberFormat::kNELLimitMinMax, kVerticalFrame, TGCompositeFrame::MapSubwindows(), TGFrame::MapWindow(), p, TGFrame::Resize(), TGNumberEntry::SetLimits(), TGMainFrame::SetWindowName(), and TGMainFrame::SetWMPosition().

virtual StatDialogBDT::~StatDialogBDT (  )  [inline, virtual]

Definition at line 54 of file BDT.C.

References TGCompositeFrame::Cleanup(), TGMainFrame::CloseWindow(), fCanvas, TMVA::DecisionTreeNode::fgIsTraining, TCollection::FindObject(), fMain, fThis, TROOT::GetListOfCanvases(), and gROOT.

StatDialogBDT::StatDialogBDT ( const TGWindow p,
TString  wfile = "weights/TMVARegression_BDT.weights.xml",
TString  methName = "BDT",
Int_t  itree = 0 
)

virtual StatDialogBDT::~StatDialogBDT (  )  [inline, virtual]

Definition at line 54 of file BDT_Reg.C.

References TGCompositeFrame::Cleanup(), TGMainFrame::CloseWindow(), fCanvas, TMVA::DecisionTreeNode::fgIsTraining, TCollection::FindObject(), fMain, fThis, TROOT::GetListOfCanvases(), and gROOT.


Member Function Documentation

void StatDialogBDT::DrawTree ( Int_t  itree  ) 

Definition at line 362 of file BDT.C.

References TPaveText::AddText(), TCanvas::Clear(), d, TString::Data(), depth, TPaveText::Draw(), TCanvas::Draw(), DrawNode(), fCanvas, fMethName, Form(), fWfile, TStyle::GetCanvasColor(), TColor::GetColor(), TROOT::GetStyle(), gROOT, TMVAGlob::imgconv(), kBkgColorF, kBkgColorT, kIntColorF, kIntColorT, kSigColorF, kSigColorT, ReadTree(), TPave::SetBorderSize(), TStyle::SetCanvasColor(), TAttFill::SetFillColor(), TAttFill::SetFillStyle(), TAttText::SetTextColor(), and TCanvas::Update().

Referenced by BDT(), BDT_Reg(), and UpdateCanvases().

void StatDialogBDT::RaiseDialog (  )  [inline]

Definition at line 66 of file BDT.C.

References fMain, TGCompositeFrame::Layout(), TGFrame::MapWindow(), and TGWindow::RaiseWindow().

Referenced by BDT(), and BDT_Reg().

void StatDialogBDT::UpdateCanvases (  )  [private]

Definition at line 182 of file BDT.C.

References DrawTree(), and fItree.

Referenced by Redraw().

TMVA::DecisionTree * StatDialogBDT::ReadTree ( TString *&  vars,
Int_t  itree 
) [private]

Definition at line 284 of file BDT.C.

References buffer, d, dummy, TString::EndsWith(), fNtrees, fWfile, TMVA::gTools(), i, line, and sprintf().

Referenced by DrawTree().

void StatDialogBDT::DrawNode ( TMVA::DecisionTreeNode n,
Double_t  x,
Double_t  y,
Double_t  xscale,
Double_t  yscale,
TString vars 
) [private]

Definition at line 234 of file BDT.C.

References buffer, Form(), kBkgColorF, kBkgColorT, kIntColorF, kIntColorT, kSigColorF, kSigColorT, n, NULL, sprintf(), and t.

Referenced by DrawTree().

void StatDialogBDT::GetNtrees (  )  [private]

Definition at line 187 of file BDT.C.

References dummy, TString::EndsWith(), fNtrees, fWfile, TMVA::gTools(), and nc.

Referenced by StatDialogBDT().

static void StatDialogBDT::Delete ( void   )  [inline, static]

Definition at line 95 of file BDT.C.

References fThis.

Referenced by BDT(), BDT_DeleteTBar(), and BDT_Reg().

void StatDialogBDT::SetItree (  ) 

Definition at line 110 of file BDT.C.

References fInput, fItree, and TGNumberEntry::GetNumber().

void StatDialogBDT::Redraw (  ) 

Definition at line 115 of file BDT.C.

References UpdateCanvases().

void StatDialogBDT::Close (  ) 

Definition at line 120 of file BDT.C.

void StatDialogBDT::DrawTree ( Int_t  itree  ) 

void StatDialogBDT::RaiseDialog (  )  [inline]

Definition at line 66 of file BDT_Reg.C.

References fMain, TGCompositeFrame::Layout(), TGFrame::MapWindow(), and TGWindow::RaiseWindow().

void StatDialogBDT::UpdateCanvases (  )  [private]

TMVA::DecisionTree* StatDialogBDT::ReadTree ( TString *&  vars,
Int_t  itree 
) [private]

void StatDialogBDT::DrawNode ( TMVA::DecisionTreeNode n,
Double_t  x,
Double_t  y,
Double_t  xscale,
Double_t  yscale,
TString vars 
) [private]

void StatDialogBDT::GetNtrees (  )  [private]

static void StatDialogBDT::Delete ( void   )  [inline, static]

Definition at line 95 of file BDT_Reg.C.

References fThis.

void StatDialogBDT::SetItree (  ) 

void StatDialogBDT::Redraw (  ) 

void StatDialogBDT::Close (  ) 


Member Data Documentation

TGMainFrame* StatDialogBDT::fMain [private]

Definition at line 70 of file BDT.C.

Referenced by RaiseDialog(), StatDialogBDT(), and ~StatDialogBDT().

Int_t StatDialogBDT::fItree [private]

Definition at line 71 of file BDT.C.

Referenced by SetItree(), StatDialogBDT(), and UpdateCanvases().

Int_t StatDialogBDT::fNtrees [private]

Definition at line 72 of file BDT.C.

Referenced by GetNtrees(), ReadTree(), and StatDialogBDT().

TCanvas* StatDialogBDT::fCanvas [private]

Definition at line 73 of file BDT.C.

Referenced by DrawTree(), and ~StatDialogBDT().

TGNumberEntry* StatDialogBDT::fInput [private]

Definition at line 75 of file BDT.C.

Referenced by SetItree(), and StatDialogBDT().

TGHorizontalFrame* StatDialogBDT::fButtons [private]

Definition at line 77 of file BDT.C.

Referenced by StatDialogBDT().

TGTextButton* StatDialogBDT::fDrawButton [private]

Definition at line 78 of file BDT.C.

Referenced by StatDialogBDT().

TGTextButton* StatDialogBDT::fCloseButton [private]

Definition at line 79 of file BDT.C.

Referenced by StatDialogBDT().

TString StatDialogBDT::fWfile [private]

Definition at line 89 of file BDT.C.

Referenced by DrawTree(), GetNtrees(), and ReadTree().

TString StatDialogBDT::fMethName [private]

Definition at line 90 of file BDT.C.

Referenced by DrawTree().

StatDialogBDT * StatDialogBDT::fThis [static, private]

Definition at line 104 of file BDT.C.

Referenced by Delete(), StatDialogBDT(), and ~StatDialogBDT().

TGMainFrame* StatDialogBDT::fMain [private]

Definition at line 70 of file BDT_Reg.C.

TCanvas* StatDialogBDT::fCanvas [private]

Definition at line 73 of file BDT_Reg.C.

TGNumberEntry* StatDialogBDT::fInput [private]

Definition at line 75 of file BDT_Reg.C.

TGHorizontalFrame* StatDialogBDT::fButtons [private]

Definition at line 77 of file BDT_Reg.C.

TGTextButton* StatDialogBDT::fDrawButton [private]

Definition at line 78 of file BDT_Reg.C.

TGTextButton* StatDialogBDT::fCloseButton [private]

Definition at line 79 of file BDT_Reg.C.

StatDialogBDT* StatDialogBDT::fThis [static, private]

Definition at line 104 of file BDT_Reg.C.


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