| Home | Trees | Index | Help |
|
|---|
| Package pyrobot :: Package brain :: Module ga :: Class Gene |
|
GACAGene,
GPGene| Method Summary | |
|---|---|
__init__(self,
**args)
| |
__getitem__(self,
val)
| |
__len__(self)
| |
copy(self)
| |
Depending on the crossoverRate, will return two new children created by crossing over the given parents at a single point, or will return copies of the parents. | |
display(self)
| |
Depending on the mutationRate, will mutate the genotype. | |
| Method Details |
|---|
crossover(self, parent2, crossoverRate)Depending on the crossoverRate, will return two new children created by crossing over the given parents at a single point, or will return copies of the parents. |
mutate(self, mutationRate)Depending on the mutationRate, will mutate the genotype. |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Jul 25 01:39:26 2005 | http://epydoc.sf.net |