프로퍼티 | 타입 | 설명 | |
---|---|---|---|
generator | INoteGenerator |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
rand | |||
root |
메소드 | 설명 | |
---|---|---|
Clone ( ) : IChromosome |
Clone the chromosome. The method clones the chromosome returning the exact copy of it. |
|
CreateNew ( ) : IChromosome |
Create new random chromosome with same parameters (factory method). The method creates new chromosome of the same type, but randomly initialized. The method is useful as factory method for those classes, which work with chromosome's interface, but not with particular chromosome type. |
|
Crossover ( IChromosome pair ) : void |
Crossover operator. The method performs crossover between two chromosomes – interchanging randomly selected sub trees. |
|
GPCustomTree ( NoteGene ancestor ) : System |
Initializes a new instance of the GPTreeChromosome class. This constructor creates a randomly generated genetic tree, which has all genes of the same type and properties as the specified ancestor. |
|
Generate ( ) : void |
Generate random chromosome value. Regenerates chromosome's value using random number generator. |
|
Generate ( IEnumerable |
||
GenerateNotes ( ) : List |
||
Mutate ( ) : void |
Mutation operator. The method performs chromosome's mutation by regenerating tree's randomly selected node. |
|
ToString ( ) : string |
Get string representation of the chromosome by providing its expression in reverse polish notation (postfix notation). The method returns string representation of the tree's root node (see GPTreeNode.ToString). |
메소드 | 설명 | |
---|---|---|
GPCustomTree ( |
Initializes a new instance of the GPTreeChromosome class. This constructor creates new genetic tree as a copy of the specified source tree. |
|
Generate ( |
Generate chromosome's subtree of specified level.
|
메소드 | 설명 | |
---|---|---|
RandomSwap ( |
Crossover helper routine - selects random node of chromosomes tree and swaps it with specified node.
|
|
Trim ( |
Trim tree node, so its depth does not exceed specified level.
|
public Crossover ( IChromosome pair ) : void | ||
pair | IChromosome | Pair chromosome to crossover with. |
리턴 | void |
protected GPCustomTree ( |
||
source | Source genetic tree to clone from. | |
리턴 | System |
public GPCustomTree ( NoteGene ancestor ) : System | ||
ancestor | NoteGene | A gene, which is used as generator for the genetic tree. |
리턴 | System |
protected Generate ( |
||
node | Sub tree's node to generate. | |
level | int | Sub tree's level to generate. |
리턴 | void |