Public Member Functions | Protected Attributes

Tree::Primitives::ERCD Class Reference
[TreeGenotypesTree Primitives]

Ephemereal random constant (ERC) node of type double (Tree genotype). More...

#include <Terminal.h>

Inheritance diagram for Tree::Primitives::ERCD:
Tree::Primitives::ERC< double > Tree::Primitives::Primitive

List of all members.

Public Member Functions

bool initialize (StateP state)
 Initialize ERC value(s).
PrimitiveP assignToNode (PrimitiveP primitive)
 Create (or choose) new unique ERC value and assign to tree node.

Protected Attributes

bool useInterval_

Detailed Description

Ephemereal random constant (ERC) node of type double (Tree genotype).

Possible values may be defined in the configuration with the interval [x y] or with a set {a b c ...}

Definition at line 188 of file Terminal.h.


Member Function Documentation

PrimitiveP Tree::Primitives::ERCD::assignToNode ( PrimitiveP  primitive  )  [inline, virtual]

Create (or choose) new unique ERC value and assign to tree node.

Parameters:
pointer to destination

Reimplemented from Tree::Primitives::ERC< double >.

Definition at line 214 of file Terminal.h.

bool Tree::Primitives::ERCD::initialize ( StateP  state  )  [inline, virtual]

Initialize ERC value(s).

Read given values from config and store in vector.

Reimplemented from Tree::Primitives::ERC< double >.

Definition at line 191 of file Terminal.h.


The documentation for this class was generated from the following file: