44 #ifndef __DERLINUNIVERS_H
45 #define __DERLINUNIVERS_H
89 std::vector<Layer> layers;
95 Elman* e =
new Elman(1,layers,
false,
false,
false);
100 virtual void init(
int sensornumber,
int motornumber,
RandGen* randGen = 0);
106 virtual void step(
const sensor* sensors,
int sensornumber,
107 motor* motors,
int motornumber);
121 int number_steps_for_averaging_);
146 virtual bool store(FILE* f)
const;
virtual void stepNoLearning(const sensor *, int number_sensors, motor *, int number_motors)
performs one step without learning.
Definition: derlinunivers.cpp:178
unsigned int number_sensors
Definition: derlinunivers.h:152
Matrix type.
Definition: matrix.h:65
static double tanhr(double z)
Definition: feedforwardnn.h:67
unsigned int number_motors
Definition: derlinunivers.h:153
std::list< IConnection > iconnectionlist
Definition: inspectable.h:88
virtual iconnectionlist getStructuralConnections() const
Specifies which parameter matrix forms a connection between layers (in terms of a neural network) The...
Definition: derlinunivers.cpp:282
paramval epsM
Definition: derlinunivers.h:166
Abstract class for robot controller (with some basic functionality).
Definition: abstractcontroller.h:46
matrix::Matrix * y_buffer
Definition: derlinunivers.h:158
paramval s4avg
Definition: derlinunivers.h:169
paramval Enorm
Definition: derlinunivers.h:171
struct _DerLinUniversConf DerLinUniversConf
double sensor
Definition: types.h:29
bool initialised
Definition: derlinunivers.h:154
void putInBuffer(matrix::Matrix *buffer, const matrix::Matrix &vec, int delay=0)
Definition: derlinunivers.h:127
bool someInternalParams
someInternalParams if true only some internal parameters are exported, all otherwise ...
Definition: derlinunivers.h:58
random generator with 48bit integer arithmentic
Definition: randomgenerator.h:34
paramval eps
Definition: derlinunivers.h:165
virtual ilayerlist getStructuralLayers() const
Specifies which parameter vector forms a structural layer (in terms of a neural network) The ordering...
Definition: derlinunivers.cpp:278
void fillBuffersAndControl(const sensor *x_, int number_sensors, motor *y_, int number_motors)
puts the sensors in the ringbuffer, generate controller values (by activating the network) and put th...
Definition: derlinunivers.cpp:185
matrix::Matrix * x_buffer
Definition: derlinunivers.h:157
double paramval
Definition: configurable.h:88
Multilayer Neural Network with context neurons (after Elman and Jordan) Example of 2 hidden layer net...
Definition: elman.h:58
matrix::Matrix * v_buffer
Definition: derlinunivers.h:159
virtual bool restore(FILE *f)
loads the object from the given file stream (ASCII preferred).
Definition: derlinunivers.cpp:244
int motorlayer
index of motor layer in the network (if -1 then one but last layer)
Definition: derlinunivers.h:61
virtual std::list< iparamkey > getInternalParamNames() const
The list of the names of all internal parameters given by getInternalParams().
Definition: derlinunivers.cpp:254
DerLinUniversConf conf
Definition: derlinunivers.h:156
virtual ~DerLinUnivers()
Definition: derlinunivers.cpp:51
paramval epsDyn
Definition: derlinunivers.h:172
virtual int getMotorNumber() const
Definition: derlinunivers.h:104
DerLinUnivers(const DerLinUniversConf &conf=getDefaultConf())
Definition: derlinunivers.cpp:33
virtual int getSensorNumber() const
Definition: derlinunivers.h:102
matrix::Matrix xsi_smooth
Definition: derlinunivers.h:163
Definition: derlinunivers.h:54
matrix::Matrix v
Definition: derlinunivers.h:161
class for robot control with sine and cosine
Definition: derlinunivers.h:70
Elman * net
entire contoller network (should have at least 2 layers)
Definition: derlinunivers.h:60
static DerLinUniversConf getDefaultConf()
Definition: derlinunivers.h:76
double motor
Definition: types.h:30
double init
init size of the matrices of the network.
Definition: derlinunivers.h:56
unsigned int buffersize
buffersize size of the time-buffer for x,y,v
Definition: derlinunivers.h:55
paramval s4del
Definition: derlinunivers.h:170
paramval epsV
Definition: derlinunivers.h:167
static DerLinUniversConf getDefaultNetConf()
Definition: derlinunivers.h:87
virtual void init(int sensornumber, int motornumber, RandGen *randGen=0)
initialisation of the controller with the given sensor/ motornumber Must be called before use...
Definition: derlinunivers.cpp:59
static double linear(double z)
Definition: feedforwardnn.h:54
double squashsize
update squashing
Definition: derlinunivers.h:57
std::list< ILayer > ilayerlist
Definition: inspectable.h:87
matrix::Matrix calculateControllerValues(const matrix::Matrix &x)
calculate controller outputs (and activates inputs)
Definition: derlinunivers.cpp:206
matrix::Matrix J
Definition: derlinunivers.h:162
virtual void step(const sensor *sensors, int sensornumber, motor *motors, int motornumber)
performs one step (includes learning).
Definition: derlinunivers.cpp:94
int c
Definition: hexapod.cpp:56
virtual std::list< iparamval > getInternalParams() const
Definition: derlinunivers.cpp:266
unsigned int t
Definition: derlinunivers.h:151
paramval lambda
Definition: derlinunivers.h:168
matrix::Matrix calculateSmoothValues(const matrix::Matrix *buffer, int number_steps_for_averaging_)
calculate time-smoothed values
Definition: derlinunivers.cpp:213
virtual bool store(FILE *f) const
stores the object to the given file stream (ASCII preferred).
Definition: derlinunivers.cpp:237
static double calcErrorFactor(const matrix::Matrix &e, int Enorm)
calculates the error_factor for 1: square (E=sqrt(e^t*e)) error; 2: logarithmic (E=ln(e^T*e)) or 0 fo...
Definition: derlinunivers.cpp:226