Packagecom.suckatmath.machinelearning.genetic.core
Interfacepublic interface Genome
Implementors ArrayGenome, BinaryTreeGenome, FixedLengthStringGenome

Genome encapsulates the serialized version of your Evolvables. This should have all the information necessary to build a new Evolvable



Public Methods
 MethodDefined By
  
return a copy of this Genome
Genome
  
crossover(others:Array, np:int):Genome
"sexual" reproduction.
Genome
  
mutate(probability:Number):Genome
create a new genome based on this one with some probability of slight differences
Genome
  
construct a new random Genome
Genome
Method Detail
clone()method
public function clone():Genome

return a copy of this Genome

Returns
Genome
crossover()method 
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
Genome — Genome - new Genome
mutate()method 
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
Genome — Genome - new Genome
newRandom()method 
public function newRandom():Genome

construct a new random Genome

Returns
Genome