4#include "../Algorithm.h"
5#include "../bitstring/BitString.h"
8#include "ClassifierParams.h"
13typedef boost::shared_ptr<Classifier> ClassifierP;
25 ClassifierParamsP params;
28 Classifier(XCSParamsP xcsParams,
unsigned long long int time, IndividualP ind, StateP state);
30 static bool checkState(
const StateP state);
32 void cover (std::set<int> actions,
const GenotypeP input,StateP state);
33 bool doesMatch(
const GenotypeP input);
35 GenotypeP getAction();
36 void setAction(GenotypeP action);
38 void mutateRule(GenotypeP input, StateP state);
39 void mutateAction(StateP state);
46#pragma region BitString specific
47 static void printBitString (
const BitStringP bString);
48 BitStringP getRuleBitString();
49 BitStringP getDontCareBitString();
53 double getDeletionVote(
double avFit);
56 bool isMoreGeneral(ClassifierP cl);
57 bool doesSubsume(ClassifierP cl);
59 double getPrediction();
63 unsigned long long int getTimeStamp();
65 double getActSetSize();
66 double getExperience();
68 void setPrediction(
double p);
69 void setError(
double eps);
70 void setFitness(
double F);
72 void setTimeStamp(
unsigned long long int ts);
73 void setNumerosity(
int num);
74 void setActSetSize(
double as);
75 void setExperience(
double exp);
78 void printRuleString (
const BitStringP bString,
const BitStringP hashString);
Classifier class that holds all parameters and pointer to individual to which the parameters belong.