31 #ifndef ROOT_TMVA_Rule
32 #define ROOT_TMVA_Rule
38 #ifndef ROOT_TMVA_DecisionTree
41 #ifndef ROOT_TMVA_Event
44 #ifndef ROOT_TMVA_RuleCut
54 std::ostream&
operator<<( std::ostream& os,
const Rule & rule );
59 friend std::ostream&
operator<< ( std::ostream& os,
const Rule & rule );
158 void PrintRaw ( std::ostream& os )
const;
159 void*
AddXMLTo (
void* parent )
const;
161 void ReadRaw ( std::istream& os );
170 void Print( std::ostream& os )
const;
Rule()
the simple constructor
void SetCoefficient(Double_t v)
void SetSSBNeve(Double_t v)
void SetRuleCut(RuleCut *rc)
Bool_t IsSignalRule() const
Bool_t EvalEvent(const Event &eve)
void operator=(const Rule &other)
Double_t RuleDist(const Rule &other, Bool_t useCutValue) const
Returns: -1.0 : rules are NOT equal, i.e, variables and/or cut directions are wrong >=0: rules are eq...
Bool_t Equal(const Rule &other, Bool_t useCutValue, Double_t maxdist) const
Compare two rules.
Double_t GetSSBNeve() const
Double_t GetImportanceRef() const
void SetSigma(Double_t v)
const RuleCut * GetRuleCut() const
const TString & GetVarName(Int_t i) const
returns the name of a rule
Bool_t EvalEvent(const Event &e) const
Bool_t operator==(const Rule &other) const
comparison operator ==
Bool_t ContainsVariable(UInt_t iv) const
check if variable in node
void ReadFromXML(void *wghtnode)
read rule from XML
Double_t GetImportance() const
void * AddXMLTo(void *parent) const
const RuleEnsemble * GetRuleEnsemble() const
Double_t GetSigma() const
UInt_t GetNcuts() const
get number of cuts
void PrintRaw(std::ostream &os) const
extensive print function used to print info for the weight file
void ReadRaw(std::istream &os)
read function (format is the same as written by PrintRaw)
void PrintLogger(const char *title=0) const
print function
void Copy(const Rule &other)
copy function
std::ostream & operator<<(std::ostream &os, const BinaryTree &tree)
print the tree recursinvely using the << operator
void SetImportanceRef(Double_t v)
void SetSupport(Double_t v)
void SetNorm(Double_t norm)
void Print(std::ostream &os) const
print function
Double_t GetRelImportance() const
UInt_t GetNumVarsUsed() const
Double_t GetCoefficient() const
Bool_t operator<(const Rule &other) const
comparison operator <
Abstract ClassifierFactory template that handles arbitrary types.
void SetMsgType(EMsgType t)
Double_t GetSupport() const
friend std::ostream & operator<<(std::ostream &os, const Rule &rule)
MsgLogger & Log() const
message logger
Double_t Sqrt(Double_t x)
virtual ~Rule()
destructor
void SetRuleEnsemble(const RuleEnsemble *re)
double norm(double *x, double *p)
const RuleEnsemble * fRuleEnsemble