ROOT 6.12/07 Reference Guide |
Implementation of a rule.
A rule is simply a branch or a part of a branch in a tree. It fulfills the following:
The coefficient is found by either brute force or some sort of intelligent fitting. See the RuleEnsemble class for more info.
Public Member Functions | |
Rule (RuleEnsemble *re, const std::vector< const TMVA::Node * > &nodes) | |
the main constructor for a Rule More... | |
Rule (RuleEnsemble *re) | |
the simple constructor More... | |
Rule (const Rule &other) | |
Rule () | |
the simple constructor More... | |
virtual | ~Rule () |
destructor More... | |
void * | AddXMLTo (void *parent) const |
void | CalcImportance () |
Bool_t | ContainsVariable (UInt_t iv) const |
check if variable in node More... | |
Bool_t | Equal (const Rule &other, Bool_t useCutValue, Double_t maxdist) const |
Compare two rules. More... | |
Bool_t | EvalEvent (const Event &e) const |
Double_t | GetCoefficient () const |
Double_t | GetImportance () const |
Double_t | GetImportanceRef () const |
UInt_t | GetNcuts () const |
Double_t | GetNorm () const |
UInt_t | GetNumVarsUsed () const |
Double_t | GetRelImportance () const |
const RuleCut * | GetRuleCut () const |
const RuleEnsemble * | GetRuleEnsemble () const |
Double_t | GetSigma () const |
Double_t | GetSSB () const |
Double_t | GetSSBNeve () const |
Double_t | GetSupport () const |
Bool_t | IsSignalRule () const |
Bool_t | operator< (const Rule &other) const |
comparison operator < More... | |
void | operator= (const Rule &other) |
Bool_t | operator== (const Rule &other) const |
comparison operator == More... | |
void | PrintLogger (const char *title=0) const |
print function More... | |
void | PrintRaw (std::ostream &os) const |
extensive print function used to print info for the weight file More... | |
void | ReadFromXML (void *wghtnode) |
read rule from XML More... | |
void | ReadRaw (std::istream &os) |
read function (format is the same as written by PrintRaw) More... | |
Double_t | RuleDist (const Rule &other, Bool_t useCutValue) const |
Returns: More... | |
void | SetCoefficient (Double_t v) |
void | SetImportanceRef (Double_t v) |
void | SetMsgType (EMsgType t) |
void | SetNorm (Double_t norm) |
void | SetRuleCut (RuleCut *rc) |
void | SetRuleEnsemble (const RuleEnsemble *re) |
void | SetSSB (Double_t v) |
void | SetSSBNeve (Double_t v) |
void | SetSupport (Double_t v) |
Private Member Functions | |
void | Copy (const Rule &other) |
copy function More... | |
const TString & | GetVarName (Int_t i) const |
returns the name of a rule More... | |
MsgLogger & | Log () const |
message logger More... | |
void | Print (std::ostream &os) const |
print function More... | |
void | SetSigma (Double_t v) |
Private Attributes | |
Double_t | fCoefficient |
RuleCut * | fCut |
Double_t | fImportance |
Double_t | fImportanceRef |
MsgLogger * | fLogger |
Double_t | fNorm |
const RuleEnsemble * | fRuleEnsemble |
Double_t | fSigma |
Double_t | fSSB |
Double_t | fSSBNeve |
Double_t | fSupport |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Rule &rule) |
#include <TMVA/Rule.h>
TMVA::Rule::Rule | ( | RuleEnsemble * | re, |
const std::vector< const TMVA::Node * > & | nodes | ||
) |
TMVA::Rule::Rule | ( | RuleEnsemble * | re | ) |
Compare two rules.
|
inline |
|
inlineprivate |
|
private |
void TMVA::Rule::PrintLogger | ( | const char * | title = 0 | ) | const |
void TMVA::Rule::PrintRaw | ( | std::ostream & | os | ) | const |
void TMVA::Rule::ReadRaw | ( | std::istream & | os | ) |
|
inline |
|
friend |
|
private |