C# 클래스 AForge.Genetic.GPCustomTreeNode

Represents tree node of genetic programming tree.

In genetic programming a chromosome is represented by a tree, which is represented by GPTreeChromosome class. The GPTreeNode class represents single node of such genetic programming tree.

Each node may or may not have children. This means that particular node of a genetic programming tree may represent its sub tree or even entire tree.

상속: ICloneable
파일 보기 프로젝트 열기: stefan-j/GeneticMIDI 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Children List
Gene IGPGene

공개 메소드들

메소드 설명
Clone ( ) : object

Clone the tree node.

GPCustomTreeNode ( IGPGene gene ) : System

Initializes a new instance of the GPTreeNode class.

Generate ( IEnumerable notes ) : void
GenerateNotes ( ) : List
Repeat ( int n ) : GPCustomTreeNode
ShiftDuration ( int val ) : void
ShiftPitch ( int val ) : void
Swap ( ) : void
ToString ( ) : string

Get string representation of the node.

String representation of the node lists all node's children and then the node itself. Such node's string representations equals to its reverse polish notation.

For example, if nodes value is '+' and its children are '3' and '5', then nodes string representation is "3 5 +".

비공개 메소드들

메소드 설명
GPCustomTreeNode ( ) : System

Initializes a new instance of the GPTreeNode class.

메소드 상세

Clone() 공개 메소드

Clone the tree node.
public Clone ( ) : object
리턴 object

GPCustomTreeNode() 공개 메소드

Initializes a new instance of the GPTreeNode class.
public GPCustomTreeNode ( IGPGene gene ) : System
gene IGPGene
리턴 System

Generate() 공개 메소드

public Generate ( IEnumerable notes ) : void
notes IEnumerable
리턴 void

GenerateNotes() 공개 메소드

public GenerateNotes ( ) : List
리턴 List

Repeat() 공개 메소드

public Repeat ( int n ) : GPCustomTreeNode
n int
리턴 GPCustomTreeNode

ShiftDuration() 공개 메소드

public ShiftDuration ( int val ) : void
val int
리턴 void

ShiftPitch() 공개 메소드

public ShiftPitch ( int val ) : void
val int
리턴 void

Swap() 공개 메소드

public Swap ( ) : void
리턴 void

ToString() 공개 메소드

Get string representation of the node.

String representation of the node lists all node's children and then the node itself. Such node's string representations equals to its reverse polish notation.

For example, if nodes value is '+' and its children are '3' and '5', then nodes string representation is "3 5 +".

public ToString ( ) : string
리턴 string

프로퍼티 상세

Children 공개적으로 프로퍼티

List of node's children.
public List Children
리턴 List

Gene 공개적으로 프로퍼티

Gene represented by the chromosome.
public IGPGene Gene
리턴 IGPGene