|
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
)
Public Function CompareTo (
o As Object
) As Integer
Request Example
View SourceParameters
- o
- Type: SystemObject
Binary chromosome to compare to.
Return Value
Type:
Int32Returns 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