|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucs.Indiv
A population member for use in UCS.
Field Summary | |
double |
accuracy
The current accuracy of this rule. |
double |
action
The action suggested by this rule |
RuleCondition |
condition
The RuleCondition object defining the matching input space for this rule. |
int |
correctSetSize
Average size of the correct sets that this rule participates in. |
int |
numCorrect
The number of examples correctly classified by this rule |
int |
numMatches
The number of examples matched by this rule, also known as experience in the LCS literature. |
static int |
numOutputs
The total number of possible actions. |
Constructor Summary | |
Indiv(int length,
UCSconfig conf)
Constructor for this class. |
Method Summary | |
java.lang.Object |
clone()
Clones this Indiv object. |
double |
fitness()
Returns the fitness of this individual, determined by the current UCSconfig object. |
boolean |
matches(double[] input)
Checks whether the provided input is matched by this individual. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public double accuracy
public double action
public RuleCondition condition
public int correctSetSize
public int numCorrect
public int numMatches
public static int numOutputs
Constructor Detail |
public Indiv(int length, UCSconfig conf)
length
- The length of the conditions to be used in this run.conf
- A UCSconfig object specifying the workings of this UCS run.Method Detail |
public java.lang.Object clone()
public double fitness()
public boolean matches(double[] input)
input
- An input to check.
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |