Click or drag to resize
Accord.NET (logo)

ChromosomeBaseCompareTo Method

Compare two chromosomes.

Namespace:  Accord.Genetic
Assembly:  Accord.Genetic (in Accord.Genetic.dll) Version: 3.8.0
Syntax
public int CompareTo(
	Object o
)
Request Example View Source

Parameters

o
Type: SystemObject
Binary chromosome to compare to.

Return Value

Type: Int32
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

IComparableCompareTo(Object)
See Also