openModeller  Version 1.4.0
NegatedRangeRule Class Reference

#include <Rule.h>

Inheritance diagram for NegatedRangeRule:
Collaboration diagram for NegatedRangeRule:

List of all members.

Public Member Functions

 NegatedRangeRule ()
virtual ~NegatedRangeRule ()
virtual RuleobjFactory ()
virtual char type () const
virtual void fromString (char *strRule)
virtual bool applyToCell (EnvCell *cell)
virtual double getStrength (EnvCell *cell)
 NegatedRangeRule ()
 NegatedRangeRule (int numGenes)
 NegatedRangeRule (Scalar prediction, int numGenes, const Sample &chrom1, const Sample &chrom2, const double *performances)
 Constructor with setters.
virtual ~NegatedRangeRule ()
virtual GarpRuleobjFactory () const
virtual char type () const
virtual bool applies (const Sample &sample) const
virtual int getStrength (const Sample &sample) const
void log ()

Detailed Description

Implements Garp Negated Range rules. They are simply a negation of an equivalent Range rule. Examples of Negated Range rules are:

IF NOT (temp between 10 and 20C) THEN sp=PRESENT IF NOT (temp between 10 and 20C AND elevation between 500 and 2000m) THEN sp=ABSENT

Definition at line 146 of file Rule.h.


Constructor & Destructor Documentation

Definition at line 620 of file Rule.cpp.

Referenced by objFactory().

Definition at line 622 of file Rule.cpp.

Definition at line 52 of file rules_negrange.cpp.

NegatedRangeRule::NegatedRangeRule ( Scalar  prediction,
int  numGenes,
const Sample chrom1,
const Sample chrom2,
const double *  performances 
)

Constructor with setters.

Definition at line 56 of file rules_negrange.cpp.

virtual NegatedRangeRule::~NegatedRangeRule ( ) [virtual]

Member Function Documentation

bool NegatedRangeRule::applies ( const Sample sample) const [virtual]

Reimplemented from RangeRule.

Definition at line 66 of file rules_negrange.cpp.

References GarpRule::_chrom1, GarpRule::_chrom2, GarpRule::_numGenes, between(), and equalEps().

Here is the call graph for this function:

bool NegatedRangeRule::applyToCell ( EnvCell cell) [virtual]

Reimplemented from RangeRule.

Definition at line 629 of file Rule.cpp.

References Rule::Gene, Rule::iActiveGenes, Rule::iGeneIndex, Rule::intLength, GarpUtil::notBetween(), and EnvCell::values.

Here is the call graph for this function:

void NegatedRangeRule::fromString ( char *  strRule) [virtual]

Reimplemented from RangeRule.

Definition at line 624 of file Rule.cpp.

int NegatedRangeRule::getStrength ( const Sample sample) const [virtual]

Reimplemented from RangeRule.

Definition at line 82 of file rules_negrange.cpp.

References getStrength().

Here is the call graph for this function:

double NegatedRangeRule::getStrength ( EnvCell cell) [virtual]

Reimplemented from RangeRule.

Definition at line 650 of file Rule.cpp.

Referenced by getStrength().

void NegatedRangeRule::log ( ) [virtual]

Reimplemented from RangeRule.

Definition at line 93 of file rules_negrange.cpp.

References Log::info(), and Log::instance().

Here is the call graph for this function:

virtual GarpRule* NegatedRangeRule::objFactory ( ) const [inline, virtual]

Reimplemented from RangeRule.

Definition at line 67 of file rules_negrange.hh.

References NegatedRangeRule().

Here is the call graph for this function:

virtual Rule* NegatedRangeRule::objFactory ( ) [inline, virtual]

Reimplemented from RangeRule.

Definition at line 151 of file Rule.h.

References NegatedRangeRule().

Here is the call graph for this function:

virtual char NegatedRangeRule::type ( ) const [inline, virtual]

Reimplemented from RangeRule.

Definition at line 69 of file rules_negrange.hh.

virtual char NegatedRangeRule::type ( ) const [inline, virtual]

Reimplemented from RangeRule.

Definition at line 153 of file Rule.h.


The documentation for this class was generated from the following files: