Table of Contents

Class RealGene

Namespace
AiDotNet.Genetics
Assembly
AiDotNet.dll

Represents a gene with a real (double) value.

public class RealGene
Inheritance
RealGene
Inherited Members

Constructors

RealGene(double, double)

public RealGene(double value = 0, double stepSize = 0.1)

Parameters

value double
stepSize double

Properties

StepSize

Gets or sets the mutation step size (used in evolutionary strategies).

public double StepSize { get; set; }

Property Value

double

Value

Gets or sets the real value.

public double Value { get; set; }

Property Value

double

Methods

Clone()

public RealGene Clone()

Returns

RealGene

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.