openModeller
Version 1.4.0
|
#include <Rule.h>
Public Member Functions | |
LogitRule () | |
virtual | ~LogitRule () |
virtual Rule * | objFactory () |
virtual char | type () const |
virtual void | fromString (char *strRule) |
virtual void | initialize (EnvCellSet *objEnvCellSet, const RuleSet *objRuleSet, bool *geneIsActivePtr, int *geneIndexPtr, int iActGenes) |
virtual bool | applyToCell (EnvCell *cell) |
virtual bool | similar (Rule *objOtherRule) |
virtual double | getStrength (EnvCell *cell) |
virtual void | mutate (int intTemperature) |
int | regression (EnvCellSet *objEnvCellSet, int dep, double &constant, double &coef1, double &coef2) |
LogitRule () | |
LogitRule (int numRules) | |
LogitRule (Scalar prediction, int numGenes, const Sample &chrom1, const Sample &chrom2, const double *performances) | |
Constructor with setters. | |
virtual | ~LogitRule () |
virtual GarpRule * | objFactory () const |
virtual char | type () const |
virtual void | initialize (const Regression ®ression) |
virtual bool | applies (const Sample &sample) const |
virtual int | getStrength (const Sample &sample) const |
virtual bool | similar (const GarpRule *objOtherRule) const |
void | log () |
Implements Garp Logistic Regression rules. Also known as Logit rules.
Definition at line 728 of file Rule.cpp.
Referenced by objFactory().
LogitRule::~LogitRule | ( | ) | [virtual] |
LogitRule::LogitRule | ( | int | numRules | ) |
Definition at line 55 of file rules_logit.cpp.
LogitRule::LogitRule | ( | Scalar | prediction, |
int | numGenes, | ||
const Sample & | chrom1, | ||
const Sample & | chrom2, | ||
const double * | performances | ||
) |
Constructor with setters.
Definition at line 59 of file rules_logit.cpp.
virtual LogitRule::~LogitRule | ( | ) | [virtual] |
bool LogitRule::applies | ( | const Sample & | sample | ) | const [virtual] |
Implements GarpRule.
Definition at line 85 of file rules_logit.cpp.
References getStrength().
bool LogitRule::applyToCell | ( | EnvCell * | cell | ) | [virtual] |
Implements Rule.
Definition at line 810 of file Rule.cpp.
References getStrength().
void LogitRule::fromString | ( | char * | strRule | ) | [virtual] |
int LogitRule::getStrength | ( | const Sample & | sample | ) | const [virtual] |
Implements GarpRule.
Definition at line 91 of file rules_logit.cpp.
References GarpRule::_chrom1, GarpRule::_chrom2, Sample::begin(), Sample::end(), and equalEps().
double LogitRule::getStrength | ( | EnvCell * | cell | ) | [virtual] |
Implements Rule.
Definition at line 814 of file Rule.cpp.
References Rule::Gene, Rule::iActiveGenes, Rule::iGeneIndex, Rule::intLength, GarpUtil::membership(), and EnvCell::values.
Referenced by applies(), and applyToCell().
void LogitRule::initialize | ( | const Regression & | regression | ) | [virtual] |
Definition at line 69 of file rules_logit.cpp.
References GarpRule::_chrom1, GarpRule::_chrom2, GarpRule::_numGenes, Random::get(), Regression::getB(), and Regression::getC().
void LogitRule::initialize | ( | EnvCellSet * | objEnvCellSet, |
const RuleSet * | objRuleSet, | ||
bool * | geneIsActivePtr, | ||
int * | geneIndexPtr, | ||
int | iActGenes | ||
) | [virtual] |
Implements Rule.
Definition at line 743 of file Rule.cpp.
References Rule::Gene, Rule::iActiveGenes, Rule::iGeneIndex, GarpUtil::randint(), and regression().
void LogitRule::log | ( | ) | [virtual] |
Reimplemented from GarpRule.
Definition at line 154 of file rules_logit.cpp.
References GarpRule::_chrom1, GarpRule::_chrom2, GarpRule::_numGenes, GarpRule::_prediction, coeficientThreshold, GarpRule::getPerformance(), Log::info(), Log::instance(), and PerfSig.
void LogitRule::mutate | ( | int | intTemperature | ) | [virtual] |
Reimplemented from Rule.
Definition at line 854 of file Rule.cpp.
References Rule::blnNeedsEvaluation, Rule::chrOrigin, Rule::Gene, Rule::iActiveGenes, Rule::iGeneIndex, Rule::intGens, Rule::intLength, and GarpUtil::randint().
virtual GarpRule* LogitRule::objFactory | ( | ) | const [inline, virtual] |
Implements GarpRule.
Definition at line 61 of file rules_logit.hh.
References LogitRule().
virtual Rule* LogitRule::objFactory | ( | ) | [inline, virtual] |
Implements Rule.
Definition at line 185 of file Rule.h.
References LogitRule().
int LogitRule::regression | ( | EnvCellSet * | objEnvCellSet, |
int | dep, | ||
double & | constant, | ||
double & | coef1, | ||
double & | coef2 | ||
) |
Definition at line 767 of file Rule.cpp.
References EnvCellSet::count(), EnvCellSet::get(), and EnvCell::values.
Referenced by initialize().
bool LogitRule::similar | ( | const GarpRule * | objOtherRule | ) | const [virtual] |
Reimplemented from GarpRule.
Definition at line 122 of file rules_logit.cpp.
References GarpRule::_chrom1, GarpRule::_numGenes, GarpRule::_prediction, coeficientThreshold, GarpRule::type(), and type().
bool LogitRule::similar | ( | Rule * | objOtherRule | ) | [virtual] |
Reimplemented from Rule.
Definition at line 873 of file Rule.cpp.
References Rule::Gene, Rule::intLength, and type().
virtual char LogitRule::type | ( | ) | const [inline, virtual] |
Reimplemented from GarpRule.
Definition at line 63 of file rules_logit.hh.
virtual char LogitRule::type | ( | ) | const [inline, virtual] |