ChromosomeBase Members | GeneticSharp |
The ChromosomeBase type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
ChromosomeBase |
Initializes a new instance of the ChromosomeBase class.
The length, in genes, of the chromosome. |
Methods
Name | Description | |
---|---|---|
Clone |
Creates a clone.
| |
CompareTo |
Compares the current object with another object of the same type.
| |
CreateNew |
Creates a new chromosome using the same structure of this.
| |
Equals |
Determines whether the specified Object is equal to the current ChromosomeBase.
(Overrides Object Equals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GenerateGene |
Generates the gene for the specified index.
| |
GetGene |
Gets the gene in the specified index.
| |
GetGenes |
Gets the genes.
| |
GetHashCode |
Returns a hash code for this instance.
(Overrides Object GetHashCode .) | |
GetType | Gets the type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ReplaceGene |
Replaces the gene in the specified index.
| |
ReplaceGenes |
Replaces the genes starting in the specified index.
| |
Resize |
Resizes the chromosome to the new length.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Operators
Name | Description | |
---|---|---|
Equality | ||
GreaterThan | ||
Inequality | ||
LessThan |
Properties
Name | Description | |
---|---|---|
Fitness |
Gets or sets the fitness of the chromosome in the current problem.
| |
Length |
Gets the length, in genes, of the chromosome.
|
See Also