IChromosome Interface
Click or drag to resize
Accord.NET (logo)

IChromosome Interface

Chromosome interface.

Namespace:  Accord.Genetic
Assembly:  Accord.Genetic (in Accord.Genetic.dll) Version: 3.8.0
Syntax
public interface IChromosome : IComparable
Request Example View Source

The IChromosome type exposes the following members.

Properties
  NameDescription
Public propertyFitness
Chromosome's fitness value.
Top
Methods
  NameDescription
Public methodClone
Clone the chromosome.
Public methodCompareTo
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
(Inherited from IComparable.)
Public methodCreateNew
Create new random chromosome with same parameters (factory method).
Public methodCrossover
Crossover operator.
Public methodEvaluate
Evaluate chromosome with specified fitness function.
Public methodGenerate
Generate random chromosome value.
Public methodMutate
Mutation operator.
Top
Remarks

The interfase should be implemented by all classes, which implement particular chromosome type.

See Also