Table of Contents

Class BinaryGene

Namespace
AiDotNet.Genetics
Assembly
AiDotNet.dll

Represents a gene that holds a binary value (0 or 1).

public class BinaryGene
Inheritance
BinaryGene
Inherited Members

Constructors

BinaryGene(int)

public BinaryGene(int value = 0)

Parameters

value int

Properties

Value

Gets or sets the binary value (0 or 1).

public int Value { get; set; }

Property Value

int

Methods

Clone()

public BinaryGene Clone()

Returns

BinaryGene

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.