Darwin Neuroevolution Framework
|
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. | |
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.
|
pure virtual |
Returns the value of one of the outputs.