openModeller  Version 1.5.0
rules_negrange.hh
Go to the documentation of this file.
1 
36 #ifndef _RULES_NEGRANGE_HH_
37 #define _RULES_NEGRANGE_HH_
38 
39 #include <openmodeller/om.hh>
40 
41 #include "rules_range.hh"
42 
43 /****************************************************************/
44 /****************** NegatedRangeRule class **********************/
45 
54 class NegatedRangeRule : public RangeRule
55 {
56 public:
58 
60 
62  NegatedRangeRule(Scalar prediction, int numGenes,
63  const Sample& chrom1, const Sample& chrom2,
64  const double * performances);
65 
66  virtual ~NegatedRangeRule();
67  virtual GarpRule * objFactory() const { return new NegatedRangeRule(); }
68 
69  virtual char type() const { return '!'; }
70 
71  virtual bool applies(const Sample& sample) const;
72  virtual int getStrength(const Sample& sample) const;
73 
74  void log();
75 };
76 
77 // ====================================================================
78 
79 #endif
virtual ~NegatedRangeRule()
Definition: Rule.cpp:622
double Scalar
Type of map values.
Definition: om_defs.hh:39
virtual char type() const
virtual double getStrength(EnvCell *cell)
Definition: Rule.cpp:650
virtual GarpRule * objFactory() const
int numGenes() const
Definition: rules_base.hh:150
virtual bool applies(const Sample &sample) const
Definition: Rule.h:116
Definition: Sample.hh:25