
Constructors
Name | Description | |
---|---|---|
![]() | Gene |
Initializes a new instance of the Gene class.
|
![]() | Gene(String) |
Initializes a new instance of the Gene class.
|
![]() | Gene(Double, Double, Double) |
Initializes a new instance of the Gene class.
|
![]() | Gene(Double, Double, Double, Double) |
Initializes a new instance of the Gene class.
|
![]() | Gene(String, Double, Double, Double) |
Initializes a new instance of the Gene class.
|
![]() | Gene(String, Double, Double, Double, Double) |
Initializes a new instance of the Gene class.
|
![]() | Gene(String, Double, Double, Double, Double, Int32) |
Initializes a new instance of the Gene class.
|
Methods
Name | Description | |
---|---|---|
![]() | CloneGene |
Clones the gene.
|
![]() | Equals |
For comparing two genes using .Equals()
Does not compare Tag or Value - only compares Max, Min, StepSize and EpigeneticCount
(Overrides ![]() |
![]() | ![]() | Allows an (Inherited from ![]() ![]() ![]() |
![]() ![]() | FromString |
Creates a new gene object from a string created by ToString.
|
![]() | GetHashCode |
Returns a hash code for this instance.
(Overrides ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | ToString |
Returns a (Overrides ![]() ![]() |
Properties
Name | Description | |
---|---|---|
![]() | EpigeneticCount |
The epigenetic generation count. If set to a non-zero value, will cause
the genetic algorithm to not express this gene. Epigenetics allows for
changes in gene expression caused by mechanisms other than changes in
the underlying DNA sequence, temporarily or through multiple generations.
For example if this gene codes for risk aversion and if the evaluation
function evaluates the entire Genome to having been too risky, then the
gene may be temporarily silenced within the evaluation function. This is
done by setting EpigeneticCount to a positive value representing
the number of generations to silence the gene before it is reactivated.
The purpose of this feature is to provide momentum to overcome local optima.
|
![]() | Max |
Maximum value for the gene.
|
![]() | Min |
Minimum value for the gene.
|
![]() | StepSize |
The step size for the gene value.
|
![]() | Tag |
Helps identify the gene.
|
![]() | Value |
The gene value.
|
See Also