Table of Contents

Class PermutationGene

Namespace
AiDotNet.Genetics
Assembly
AiDotNet.dll

Represents a gene in a permutation (the index of an element in a sequence).

public class PermutationGene
Inheritance
PermutationGene
Inherited Members

Constructors

PermutationGene(int)

public PermutationGene(int index)

Parameters

index int

Properties

Index

Gets or sets the index value.

public int Index { get; set; }

Property Value

int

Methods

Clone()

public PermutationGene Clone()

Returns

PermutationGene

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.