Compare two chromosomes.

Namespace:  AForge.Genetic
Assembly:  AForge.Genetic (in AForge.Genetic.dll) Version: 2.2.4.0 (2.2.4.0)

Syntax

C#
public int CompareTo(
	Object o
)

Parameters

o
Type: System..::.Object
Binary chromosome to compare to.

Return Value

Returns comparison result, which equals to 0 if fitness values of both chromosomes are equal, 1 if fitness value of this chromosome is less than fitness value of the specified chromosome, -1 otherwise.

Implements

IComparable..::.CompareTo(Object)

See Also