Genome encapsulates the serialized version of your Evolvables. This should have all the information necessary to build a new Evolvable
public function clone():Genome
return a copy of this Genome
Returns public function crossover(others:Array, np:int):Genome
"sexual" reproduction. constructs a new genome by taking parts of parents.
Parameters
| others:Array — Array full of Genomes representing other parents.
|
| |
| np:int — number of crossover points
|
Returns public function mutate(probability:Number):Genome
create a new genome based on this one with some probability of slight differences
Parameters
| probability:Number — - number between 0 and 1 representing the probability that the genome will mutate.
|
Returns public function newRandom():Genome
construct a new random Genome
Returns
Thu Jan 16 2014, 01:11 PM +08:00