|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensourcephysics.sip.ch14.genetic.GenePool
public class GenePool
GeneticApp carries out the evolution of a genetic algorithm.
Constructor Summary | |
---|---|
GenePool()
|
Method Summary | |
---|---|
void |
copyGenotype(boolean[] a,
boolean[] b)
|
void |
draw(DrawingPanel panel,
java.awt.Graphics g)
Draws a representation of an object in a drawing panel. |
void |
evolve()
|
void |
initialize(Phenotype phenotype)
|
void |
mutate()
|
void |
recombine()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenePool()
Method Detail |
---|
public void initialize(Phenotype phenotype)
public void copyGenotype(boolean[] a, boolean[] b)
public void recombine()
public void mutate()
public void evolve()
public void draw(DrawingPanel panel, java.awt.Graphics g)
Drawable
draw
in interface Drawable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |