Darwin Neuroevolution Framework
Public Member Functions | List of all members
darwin::Brain Class Referenceabstract

The interface to the Phenotype More...

#include <darwin.h>

Inherited by cgp::Brain, cne::Brain< TRAITS >, neat::Brain, and test_population::Brain.

Public Member Functions

virtual void setInput (int index, float value)=0
 Sets the value for one of the brain's inputs.
 
virtual float output (int index) const =0
 Returns the value of one of the outputs. More...
 
virtual void think ()=0
 Evaluates the outputs from the intput values.
 
virtual void resetState ()=0
 If the concrete brain implementation maintains internal state (for example LSTM cells), this method resets this state to the initial values.
 

Detailed Description

The interface to the Phenotype

A brain is the phenotype, "grown" from a Genotype. It is the functional model used to evaluate a phenotype's fitness.

See also
Genotype

Member Function Documentation

◆ output()

virtual float darwin::Brain::output ( int  index) const
pure virtual

Returns the value of one of the outputs.

Note
Outputs can be any floating-point value except for NaNs.

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