Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

Es::EsObject Class Reference

Inheritance diagram for Es::EsObject:

Inheritance graph
[legend]
Collaboration diagram for Es::EsObject:

Collaboration graph
[legend]
List of all members.

Public Methods

 _setErrorFunction (Class, ErrorFunction, Minimize=true)
 _setTarget (Class, Target)
 __init__ (self, Gene=None, Generation=0, StepSize=0.1)
 _mutate (self)
 evaluate (self)
 str (self)

Detailed Description

For the purpose of parameter evolution EsObject adds a real valued parameter vector _gene to the class. The inherited pure virtual methods _mutate() and evaluate() get implemented. Class methods setErrorFunction() and setTarget are added.

To make the class functional the derived classes will normally override evaluate() (quality evaluation) and may override _mutate() (mutation function called by create()).


Member Function Documentation

Es::EsObject::__init__ self   ,
Gene    = None,
Generation    = 0,
StepSize    = 0.1
 

Es::EsObject::_mutate self   
 

Individual step size will be modified randomly and gene vector will be variated by adding a random mutation vector with normal distributed components.

The expectation value for the length of the mutation vector is the applied step size (resulting in a hyper-sphere border distribution).

Es::EsObject::_setErrorFunction Class   ,
ErrorFunction   ,
Minimize    = true
 

Assign a quality evaluation function (used by evaluate()) to the class. Argument may be either a function or a OptimizationTarget instance.

See also:
module OptimizationTarget

Es::EsObject::_setTarget Class   ,
Target   
 

Assign a quality evaluation function (used by evaluate()) to the class.

Es::EsObject::evaluate self   
 

Do the mapping from the genotype _gene to phenotype _phene assign a quality (fitness) _q

Quality function defaults to hyper sphere target with optimum in the Origin. See also setErrorFunction().

Reimplemented from Es::EsObjectBase.

Es::EsObject::str self   
 


The documentation for this class was generated from the following file:
Generated on Wed Mar 5 14:47:42 2003 for PyEs by doxygen1.2.17