85 void RestoreRule(
double *perf,
unsigned char *genes,
int arry_len,
int *gene_index );
88 virtual char type()
const {
return 'v'; }
92 virtual char *
toXML();
95 bool * geneIsActivePtr,
int * geneIndexPtr,
int iActGenes) = 0;
104 virtual void mutate(
int intTemperature);
122 virtual char type()
const {
return 'v'; }
133 virtual char type()
const {
return 'd'; }
137 bool * geneIsActivePtr,
int * geneIndexPtr,
int iActGenes);
153 virtual char type()
const {
return '!'; }
169 virtual char type()
const {
return 'a'; }
173 bool * geneIsActivePtr,
int * geneIndexPtr,
int iActGenes);
187 virtual char type()
const {
return 'r'; }
191 bool * geneIsActivePtr,
int * geneIndexPtr,
int iActGenes);
198 virtual void mutate(
int intTemperature);
201 double& constant,
double& coef1,
double& coef2);
Rule()
Default constructor.
virtual ~NegatedRangeRule()
virtual void fromString(char *strRule)
int intGenes
Number of genes stored by the rule.
virtual void fromString(char *strRule)
virtual bool applyToCell(EnvCell *cell)
virtual char type() const
virtual double getStrength(EnvCell *cell)=0
virtual Rule * objFactory()
friend class CJobResultValidator
double testWithData(EnvCellSet *objTrainSet)
virtual char type() const
virtual double getStrength(EnvCell *cell)
virtual void initialize(EnvCellSet *objEnvCellSet, const RuleSet *objRuleSet, bool *geneIsActivePtr, int *geneIndexPtr, int iActGenes)=0
virtual char * toString()
virtual void initialize(EnvCellSet *objEnvCellSet, const RuleSet *objRuleSet, bool *geneIsActivePtr, int *geneIndexPtr, int iActGenes)
virtual void mutate(int intTemperature)
virtual bool applyToCell(EnvCell *cell)=0
virtual void initialize(EnvCellSet *objEnvCellSet, const RuleSet *objRuleSet, bool *geneIsActivePtr, int *geneIndexPtr, int iActGenes)
virtual char type() const
virtual double getStrength(EnvCell *cell)
int regression(EnvCellSet *objEnvCellSet, int dep, double &constant, double &coef1, double &coef2)
virtual Rule * objFactory()
virtual double getStrength(EnvCell *cell)
virtual double getStrength(EnvCell *cell)
BYTE * Gene
BYTE vector containing the genes (representation of the variables in a Genetic Algorithm.
virtual void mutate(int intTemperature)
virtual void initialize(EnvCellSet *objEnvCellSet, const RuleSet *objRuleSet, bool *geneIsActivePtr, int *geneIndexPtr, int iActGenes)
virtual char type() const
void RestoreRule(double *perf, unsigned char *genes, int arry_len, int *gene_index)
Restore Model.
double dblPerformance[10]
Vector for storing the performance values for the rule.
virtual ~Rule()
Default destructor.
virtual Rule * objFactory()=0
virtual char type() const
virtual void fromString(char *strRule)
void bioclimRange(EnvCellSet *objEnvCellSet, BYTE pred, double level, int var)
virtual double getCertainty(EnvCell *cell)
virtual char type() const
virtual bool applyToCell(EnvCell *cell)
virtual bool applyToCell(EnvCell *cell)
virtual void fromString(char *strRule)
virtual Rule * objFactory()
virtual void fromString(char *strRule)=0
virtual Rule * objFactory()
virtual bool applyToCell(EnvCell *cell)
virtual bool similar(Rule *objOtherRule)
virtual double getError(BYTE pred, EnvCell *cell)
virtual void copy(Rule *fromRule)
virtual bool similar(Rule *objOtherRule)