ChromosomeBase Members
From GeneticSharp
| ChromosomeBase Members | GeneticSharp |
The ChromosomeBase type exposes the following members.
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 | (Overrides | |
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from | ||
| 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 | |
Gets the type of the current instance. (Inherited from | ||
Creates a shallow copy of the current (Inherited from | ||
| 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.
| |
Returns a string that represents the current object. (Inherited from |
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