ChromosomeBase.ReplaceGenes Method

GeneticSharp

ChromosomeBase ReplaceGenes Method GeneticSharp
Replaces the genes starting in the specified index.

Namespace: GeneticSharp.Domain.Chromosomes
Assembly: GeneticSharp.Domain (in GeneticSharp.Domain.dll) Version: 1.0.5010.36434

Syntax

public void ReplaceGenes(
	int startIndex,
	Gene[] genes
)
public void ReplaceGenes(
	int startIndex,
	Gene[] genes
)

Parameters

startIndex
Type: OnlineSystem Int32
Start index.
genes
Type:  GeneticSharp.Domain.Chromosomes Gene 
Genes.

Implements

IChromosome ReplaceGenes(Int32,  Gene )
Remarks

The genes to be replaced can't be greater than the available space between the start index and the end of the chromosome.
See Also