C# Class Encog.ML.Genetic.Crossover.SpliceNoRepeat

A simple cross over where genes are simply "spliced". Genes are not allowed to repeat.
Inheritance: ICrossover
Show file Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
Mate ( Chromosome mother, Chromosome father, Chromosome offspring1, Chromosome offspring2 ) : void

Assuming this chromosome is the "mother" mate with the passed in "father".

SpliceNoRepeat ( int cutLength ) : System.Collections.Generic

Construct a splice crossover.

Private Methods

Method Description
GetNotTaken ( Chromosome source, IList taken ) : IGene

Get a list of the genes that have not been taken before. This is useful if you do not wish the same gene to appear more than once in a chromosome.

Method Details

Mate() public method

Assuming this chromosome is the "mother" mate with the passed in "father".
public Mate ( Chromosome mother, Chromosome father, Chromosome offspring1, Chromosome offspring2 ) : void
mother Encog.ML.Genetic.Genome.Chromosome The mother.
father Encog.ML.Genetic.Genome.Chromosome The father.
offspring1 Encog.ML.Genetic.Genome.Chromosome The first offspring.
offspring2 Encog.ML.Genetic.Genome.Chromosome The second offspring.
return void

SpliceNoRepeat() public method

Construct a splice crossover.
public SpliceNoRepeat ( int cutLength ) : System.Collections.Generic
cutLength int The cut length.
return System.Collections.Generic