|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--search.GeneticSearchObject | +--search.GeneticSearchObj2
The GeneticSearchObj2
class is a specialization of
the GeneticSearchObject
.
Fields inherited from class search.GeneticSearchObject |
chromosome,
chromosomeLength,
crossoverRate,
fitness,
fitnessComputed,
mutationRate,
searchAgent,
vocabulary |
Constructor Summary | |
GeneticSearchObj2()
Creates a GeneticSearchObj2 object. |
Method Summary | |
double |
computeFitness()
Computes the fitness value by adding up the number of zeros in the chromosome. |
Methods inherited from class search.GeneticSearchObject |
binaryToInteger,
generateRandomChromosome,
getChromosome,
getChromosomeLength,
getCrossoverRate,
getFitness,
getMutationRate,
getOperatorFitness,
getRandomChromosome,
getVocabulary,
setChromosome,
setCrossoverRate,
setMutationRate,
toString |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public GeneticSearchObj2()
GeneticSearchObj2
object.Method Detail |
public double computeFitness()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |