C# Class Accord.Genetic.GPTreeNode

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.

Inheritance: ICloneable
Mostrar archivo Open project: accord-net/framework Class Usage Examples

Public Properties

Property Type Description
Children List
Gene IGPGene

Public Methods

Method Description
Clone ( ) : object

Clone the tree node.

GPTreeNode ( IGPGene gene ) : System

Initializes a new instance of the GPTreeNode class.

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 +".

Private Methods

Method Description
GPTreeNode ( ) : System

Initializes a new instance of the GPTreeNode class.

Method Details

Clone() public method

Clone the tree node.
public Clone ( ) : object
return object

GPTreeNode() public method

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

ToString() public method

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
return string

Property Details

Children public_oe property

List of node's children.
public List Children
return List

Gene public_oe property

Gene represented by the chromosome.
public IGPGene Gene
return IGPGene