openModeller  Version 1.5.0
rules_logit.hh
Go to the documentation of this file.
1 
36 #ifndef _RULES_LOGIT_HH_
37 #define _RULES_LOGIT_HH_
38 
39 #include <openmodeller/om.hh>
40 
41 #include "rules_base.hh"
42 #include "regression.hh"
43 
48 class LogitRule : public GarpRule
49 {
50 public:
51  LogitRule();
52 
53  LogitRule(int numRules);
54 
56  LogitRule(Scalar prediction, int numGenes,
57  const Sample& chrom1, const Sample& chrom2,
58  const double * performances);
59 
60  virtual ~LogitRule();
61  virtual GarpRule * objFactory() const { return new LogitRule(); }
62 
63  virtual char type() const { return 'r'; }
64 
65  virtual void initialize(const Regression& regression);
66  virtual bool applies(const Sample& sample) const;
67  virtual int getStrength(const Sample& sample) const;
68 
69  virtual bool similar(const GarpRule * objOtherRule) const;
70 
71  void log();
72 };
73 
74 // ====================================================================
75 
76 #endif
virtual GarpRule * objFactory() const
Definition: rules_logit.hh:61
double Scalar
Type of map values.
Definition: om_defs.hh:39
virtual bool applies(const Sample &sample) const
Definition: rules_logit.cpp:85
virtual char type() const
Definition: rules_logit.hh:63
int numGenes() const
Definition: rules_base.hh:150
int regression(EnvCellSet *objEnvCellSet, int dep, double &constant, double &coef1, double &coef2)
Definition: Rule.cpp:767
LogitRule()
Definition: Rule.cpp:728
virtual double getStrength(EnvCell *cell)
Definition: Rule.cpp:814
virtual ~LogitRule()
Definition: Rule.cpp:733
virtual void initialize(EnvCellSet *objEnvCellSet, const RuleSet *objRuleSet, bool *geneIsActivePtr, int *geneIndexPtr, int iActGenes)
Definition: Rule.cpp:743
Definition: Rule.h:116
virtual bool similar(Rule *objOtherRule)
Definition: Rule.cpp:873
void log()
Definition: Sample.hh:25