GPTreeChromosome Class |
Namespace: Accord.Genetic
The GPTreeChromosome type exposes the following members.
Name | Description | |
---|---|---|
GPTreeChromosome(GPTreeChromosome) |
Initializes a new instance of the GPTreeChromosome class.
| |
GPTreeChromosome(IGPGene) |
Initializes a new instance of the GPTreeChromosome class.
|
Name | Description | |
---|---|---|
Fitness |
Chromosome's fitness value.
(Inherited from ChromosomeBase.) | |
MaxInitialLevel |
Maximum initial level of genetic trees, [1, 25].
| |
MaxLevel |
Maximum level of genetic trees, [1, 50].
|
Name | Description | |
---|---|---|
Clone |
Clone the chromosome.
(Overrides ChromosomeBaseClone.) | |
CompareTo |
Compare two chromosomes.
(Inherited from ChromosomeBase.) | |
CreateNew |
Create new random chromosome with same parameters (factory method).
(Overrides ChromosomeBaseCreateNew.) | |
Crossover |
Crossover operator.
(Overrides ChromosomeBaseCrossover(IChromosome).) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Evaluate |
Evaluate chromosome with specified fitness function.
(Inherited from ChromosomeBase.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Generate |
Generate random chromosome value.
(Overrides ChromosomeBaseGenerate.) | |
Generate(GPTreeNode, Int32) |
Generate chromosome's subtree of specified level.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Mutate |
Mutation operator.
(Overrides ChromosomeBaseMutate.) | |
ToString |
Get string representation of the chromosome by providing its expression in
reverse polish notation (postfix notation).
(Overrides ObjectToString.) |
Name | Description | |
---|---|---|
fitness |
Chromosome's fitness value.
(Inherited from ChromosomeBase.) |
Name | Description | |
---|---|---|
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
To(Type) | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) | |
ToT | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) |
This type of chromosome represents a tree, where each node is represented by GPTreeNode containing IGPGene. Depending on type of genes used to build the tree, it may represent different types of expressions aimed to solve different type of tasks. For example, a particular implementation of IGPGene interface may represent simple algebraic operations and their arguments.
See documentation to IGPGene implementations for additional information about possible Genetic Programming trees.