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 () | |
the simple constructor | |
Rule (const Rule &other) | |
Rule (RuleEnsemble *re) | |
the simple constructor | |
Rule (RuleEnsemble *re, const std::vector< const TMVA::Node * > &nodes) | |
the main constructor for a Rule | |
virtual | ~Rule () |
destructor | |
void * | AddXMLTo (void *parent) const |
void | CalcImportance () |
Bool_t | ContainsVariable (UInt_t iv) const |
check if variable in node | |
Bool_t | Equal (const Rule &other, Bool_t useCutValue, Double_t maxdist) const |
Compare two rules. | |
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 < | |
void | operator= (const Rule &other) |
Bool_t | operator== (const Rule &other) const |
comparison operator == | |
void | PrintLogger (const char *title=nullptr) const |
print function | |
void | PrintRaw (std::ostream &os) const |
extensive print function used to print info for the weight file | |
void | ReadFromXML (void *wghtnode) |
read rule from XML | |
void | ReadRaw (std::istream &os) |
read function (format is the same as written by PrintRaw) | |
Double_t | RuleDist (const Rule &other, Bool_t useCutValue) const |
Returns: | |
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 | |
const TString & | GetVarName (Int_t i) const |
returns the name of a rule | |
MsgLogger & | Log () const |
void | Print (std::ostream &os) const |
print function | |
void | SetSigma (Double_t v) |
Private Attributes | |
Double_t | fCoefficient |
rule coeff. a(k) | |
RuleCut * | fCut |
all cuts associated with the rule | |
Double_t | fImportance |
importance of rule | |
Double_t | fImportanceRef |
importance ref | |
MsgLogger * | fLogger |
! message logger | |
Double_t | fNorm |
normalization - usually 1.0/t(k) | |
const RuleEnsemble * | fRuleEnsemble |
pointer to parent RuleEnsemble | |
Double_t | fSigma |
t(k) = sqrt(s*(1-s)) | |
Double_t | fSSB |
S/(S+B) for rule. | |
Double_t | fSSBNeve |
N(events) reaching the last node in reevaluation. | |
Double_t | fSupport |
s(k) | |
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 | ) |
|
private |
Compare two rules.
|
inline |
|
private |
void TMVA::Rule::PrintLogger | ( | const char * | title = nullptr | ) | const |
void TMVA::Rule::PrintRaw | ( | std::ostream & | os | ) | const |
void TMVA::Rule::ReadFromXML | ( | void * | wghtnode | ) |
void TMVA::Rule::ReadRaw | ( | std::istream & | os | ) |
|
inline |
|
friend |
|
private |
|
mutableprivate |
|
private |
|
private |
pointer to parent RuleEnsemble
|
private |