ECF 1.5
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Classifier Class Reference

Classifier class that holds all parameters and pointer to individual to which the parameters belong. More...

#include <Classifier.h>

Public Member Functions

 Classifier (XCSParamsP xcsParams, unsigned long long int time, IndividualP ind, StateP state)
 
 Classifier (ClassifierP cl)
 
void cover (std::set< int > actions, const GenotypeP input, StateP state)
 
bool doesMatch (const GenotypeP input)
 
int getActionId ()
 
GenotypeP getAction ()
 
void setAction (GenotypeP action)
 
void mutateRule (GenotypeP input, StateP state)
 
void mutateAction (StateP state)
 
void print ()
 
BitStringP getRuleBitString ()
 
BitStringP getDontCareBitString ()
 
double getDeletionVote (double avFit)
 
bool couldSubsume ()
 
int numOfDCBits ()
 
bool isMoreGeneral (ClassifierP cl)
 
bool doesSubsume (ClassifierP cl)
 
double getPrediction ()
 
double getError ()
 
double getFitness ()
 
unsigned long long int getTimeStamp ()
 
int getNumerosity ()
 
double getActSetSize ()
 
double getExperience ()
 
void setPrediction (double p)
 
void setError (double eps)
 
void setFitness (double F)
 
void setTimeStamp (unsigned long long int ts)
 
void setNumerosity (int num)
 
void setActSetSize (double as)
 
void setExperience (double exp)
 

Static Public Member Functions

static bool checkState (const StateP state)
 
static void printBitString (const BitStringP bString)
 

Public Attributes

IndividualP ind
 
ClassifierParamsP params
 
XCSParamsP xcsParams
 
bool valid
 

Detailed Description

Classifier class that holds all parameters and pointer to individual to which the parameters belong.

Definition at line 20 of file Classifier.h.

Constructor & Destructor Documentation

◆ Classifier() [1/2]

Classifier::Classifier ( XCSParamsP  xcsParams,
unsigned long long int  time,
IndividualP  ind,
StateP  state 
)

Definition at line 14 of file Classifier.cpp.

◆ Classifier() [2/2]

Classifier::Classifier ( ClassifierP  cl)

Definition at line 36 of file Classifier.cpp.

Member Function Documentation

◆ checkState()

bool Classifier::checkState ( const StateP  state)
static

Definition at line 45 of file Classifier.cpp.

◆ couldSubsume()

bool Classifier::couldSubsume ( )

Definition at line 224 of file Classifier.cpp.

◆ cover()

void Classifier::cover ( std::set< int >  actions,
const GenotypeP  input,
StateP  state 
)

Definition at line 79 of file Classifier.cpp.

◆ doesMatch()

bool Classifier::doesMatch ( const GenotypeP  input)

Definition at line 65 of file Classifier.cpp.

◆ doesSubsume()

bool Classifier::doesSubsume ( ClassifierP  cl)

Definition at line 259 of file Classifier.cpp.

◆ getAction()

GenotypeP Classifier::getAction ( )

Definition at line 144 of file Classifier.cpp.

◆ getActionId()

int Classifier::getActionId ( )

Definition at line 125 of file Classifier.cpp.

◆ getActSetSize()

double Classifier::getActSetSize ( )

Definition at line 206 of file Classifier.cpp.

◆ getDeletionVote()

double Classifier::getDeletionVote ( double  avFit)

Definition at line 216 of file Classifier.cpp.

◆ getDontCareBitString()

BitStringP Classifier::getDontCareBitString ( )

Definition at line 276 of file Classifier.cpp.

◆ getError()

double Classifier::getError ( )

Definition at line 186 of file Classifier.cpp.

◆ getExperience()

double Classifier::getExperience ( )

Definition at line 210 of file Classifier.cpp.

◆ getFitness()

double Classifier::getFitness ( )

Definition at line 194 of file Classifier.cpp.

◆ getNumerosity()

int Classifier::getNumerosity ( )

Definition at line 202 of file Classifier.cpp.

◆ getPrediction()

double Classifier::getPrediction ( )

Definition at line 190 of file Classifier.cpp.

◆ getRuleBitString()

BitStringP Classifier::getRuleBitString ( )

Definition at line 272 of file Classifier.cpp.

◆ getTimeStamp()

unsigned long long int Classifier::getTimeStamp ( )

Definition at line 198 of file Classifier.cpp.

◆ isMoreGeneral()

bool Classifier::isMoreGeneral ( ClassifierP  cl)

Definition at line 241 of file Classifier.cpp.

◆ mutateAction()

void Classifier::mutateAction ( StateP  state)

Definition at line 299 of file Classifier.cpp.

◆ mutateRule()

void Classifier::mutateRule ( GenotypeP  input,
StateP  state 
)

Definition at line 280 of file Classifier.cpp.

◆ numOfDCBits()

int Classifier::numOfDCBits ( )

Definition at line 233 of file Classifier.cpp.

◆ print()

void Classifier::print ( )

Definition at line 90 of file Classifier.cpp.

◆ printBitString()

void Classifier::printBitString ( const BitStringP  bString)
static

Definition at line 114 of file Classifier.cpp.

◆ setAction()

void Classifier::setAction ( GenotypeP  action)

Definition at line 147 of file Classifier.cpp.

◆ setActSetSize()

void Classifier::setActSetSize ( double  as)

Definition at line 174 of file Classifier.cpp.

◆ setError()

void Classifier::setError ( double  eps)

Definition at line 154 of file Classifier.cpp.

◆ setExperience()

void Classifier::setExperience ( double  exp)

Definition at line 178 of file Classifier.cpp.

◆ setFitness()

void Classifier::setFitness ( double  F)

Definition at line 162 of file Classifier.cpp.

◆ setNumerosity()

void Classifier::setNumerosity ( int  num)

Definition at line 170 of file Classifier.cpp.

◆ setPrediction()

void Classifier::setPrediction ( double  p)

Definition at line 158 of file Classifier.cpp.

◆ setTimeStamp()

void Classifier::setTimeStamp ( unsigned long long int  ts)

Definition at line 166 of file Classifier.cpp.

Member Data Documentation

◆ ind

IndividualP Classifier::ind

Definition at line 24 of file Classifier.h.

◆ params

ClassifierParamsP Classifier::params

Definition at line 25 of file Classifier.h.

◆ valid

bool Classifier::valid

Definition at line 41 of file Classifier.h.

◆ xcsParams

XCSParamsP Classifier::xcsParams

Definition at line 26 of file Classifier.h.


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