Class RealGene
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
Properties
StepSize
Gets or sets the mutation step size (used in evolutionary strategies).
public double StepSize { get; set; }
Property Value
Value
Gets or sets the real value.
public double Value { get; set; }
Property Value
Methods
Clone()
public RealGene Clone()
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.