53 virtual void init(
int sensornumber,
int motornumber,
RandGen* randg);
72 virtual bool store(FILE* f)
const;
Matrix type.
Definition: matrix.h:65
matrix::Matrix B
Model Bias.
Definition: derinf.h:112
std::list< IConnection > iconnectionlist
Definition: inspectable.h:88
matrix::Matrix y_teaching
teaching motor signal
Definition: derinf.h:177
virtual void fillBuffersAndControl(const sensor *x_, int number_sensors, motor *y_, int number_motors)
puts the sensors in the ringbuffer, generate controller values and put them in the ...
Definition: derinf.cpp:210
paramval dampS
damping of S matrix
Definition: derinf.h:186
NoiseGenerator * BNoiseGen
Noisegenerator for noisy bias.
Definition: derinf.h:113
matrix::Matrix zz
Definition: derinf.h:172
matrix::Matrix A_updateOld
Definition: derinf.h:166
matrix::Matrix y_sat
Definition: derinf.h:154
matrix::Matrix CCT_inv
Definition: derinf.h:125
virtual iparamkeylist getInternalParamNames() const
The list of the names of all internal parameters given by getInternalParams().
Definition: derinf.cpp:447
int t_rand
initial random time to avoid syncronous management of all controllers
Definition: derinf.h:183
virtual iparamvallist getInternalParams() const
Definition: derinf.cpp:487
matrix::Matrix xx
Definition: derinf.h:170
unsigned short number_motors
Definition: derinf.h:99
matrix::Matrix RRT_inv
Definition: derinf.h:120
bool someInternalParams
someInternalParams if true only some internal parameters are exported, otherwise all ...
Definition: derinf.h:38
matrix::Matrix DD1
Noise Matrix.
Definition: derinf.h:108
double EE
Definition: derinf.h:136
matrix::Matrix * xsi_buffer
Definition: derinf.h:147
virtual void init(int sensornumber, int motornumber, RandGen *randg)
initialisation of the controller with the given sensor/ motornumber Must be called before use...
Definition: derinf.cpp:75
matrix::Matrix v_smooth
Definition: derinf.h:150
matrix::Matrix C
Controller Matrix.
Definition: derinf.h:105
matrix::Matrix * chi_buffer
Definition: derinf.h:144
struct DerInfConf DerInfConf
bool modelInit
size of the unit-map strenght of the model
Definition: derinf.h:36
virtual void step(const sensor *, int number_sensors, motor *, int number_motors)
performs one step (includes learning).
Definition: derinf.cpp:184
matrix::Matrix eta
Definition: derinf.h:148
matrix::Matrix GSC
G_Prime times Controller Matrix.
Definition: derinf.h:106
paramval epsSat
learning rate for satellite network
Definition: derinf.h:190
paramval xsifactor
Definition: derinf.h:197
double cNonDiag
cNonDiag is the size of the nondiagonal elements in respect to the diagonal (cInit) ones ...
Definition: derinf.h:35
double grang1
Definition: derinf.h:132
unsigned short number_sensors
Definition: derinf.h:98
matrix::Matrix CST
Definition: derinf.h:126
matrix::Matrix yy
Definition: derinf.h:171
paramval dampC
damping of C matrix
Definition: derinf.h:187
matrix::Matrix * y_buffer
Definition: derinf.h:142
matrix::Matrix vau_avg
Definition: derinf.h:174
double sensor
Definition: types.h:29
matrix::Matrix y_intern
Definition: derinf.h:161
int buffersize
buffersize size of the time-buffer for x,y,eta
Definition: derinf.h:33
random generator with 48bit integer arithmentic
Definition: randomgenerator.h:34
matrix::Matrix zero_eta
Definition: derinf.h:151
virtual bool store(FILE *f) const
stores the controller values to a given file.
Definition: derinf.cpp:421
paramval intstate
Definition: derinf.h:194
matrix::Matrix y_integration
Definition: derinf.h:159
matrix::Matrix y_smooth
Definition: derinf.h:153
matrix::Matrix Q
Granger2.
Definition: derinf.h:118
matrix::Matrix B_updateOld
Definition: derinf.h:167
paramval creat
Definition: derinf.h:198
virtual matrix::Matrix calculateControllerValues(const matrix::Matrix &x_smooth)
returns controller output for given sensor values
Definition: derinf.cpp:398
double causalfactor
Definition: derinf.h:135
double xsi_norm_avg
average norm of xsi (used to define whether Modell learns)
Definition: derinf.h:129
matrix::Matrix x_smooth_long
Definition: derinf.h:157
matrix::Matrix * ysat_buffer
Definition: derinf.h:143
double sensor
Definition: abstractcontroller.h:48
bool useTeaching
flag whether there is an actual teachning signal or not
Definition: derinf.h:178
matrix::Matrix H_updateOld
Definition: derinf.h:164
double paramval
Definition: configurable.h:88
Extended HomeokinBase class (still abstract) for robot controller work in motorspace and use possibly...
Definition: invertmotorcontroller.h:36
matrix::Matrix x_smooth
Definition: derinf.h:152
matrix::Matrix calcDerivatives(const matrix::Matrix *buffer, int delay)
Calculates first and second derivative and returns both in on matrix (above).
Definition: derinf.cpp:408
double xsistrength
Definition: derinf.h:139
matrix::Matrix * x_buffer
Definition: derinf.h:141
matrix::Matrix y_forecast
Definition: derinf.h:158
matrix::Matrix DD
Noise Matrix.
Definition: derinf.h:107
double EE_mean
Definition: derinf.h:137
double causal
Definition: derinf.h:134
virtual int getMotorNumber() const
returns the mumber of motors the controller was initialised with or 0 if not initialised ...
Definition: derinf.h:60
matrix::Matrix ID_Sensor
identity matrix in the dimension of sensor space
Definition: derinf.h:124
matrix::Matrix A0
Definition: derinf.h:102
paramval satelliteTeaching
teaching rate for sat teaching
Definition: derinf.h:191
DerInfConf conf
Definition: derinf.h:200
matrix::Matrix * eta_buffer
Definition: derinf.h:146
matrix::Matrix * rho_buffer
Definition: derinf.h:145
paramval PIDdrv
Definition: derinf.h:193
matrix::Matrix HY_updateOld
Definition: derinf.h:165
paramval weighting
general weighting factor between update concepts
Definition: derinf.h:189
paramval adaptrate
Definition: derinf.h:196
double EE_sqr
Definition: derinf.h:138
int num_iterations
Definition: derinf.h:181
matrix::Matrix L
Definition: derinf.h:168
matrix::Matrix A_Hat
Model Matrix (motors to sensors) with input shift.
Definition: derinf.h:103
virtual int getSensorNumber() const
returns the number of sensors the controller was initialised with or 0 if not initialised ...
Definition: derinf.h:58
virtual ilayerlist getStructuralLayers() const
Specifies which parameter vector forms a structural layer (in terms of a neural network) The ordering...
Definition: derinf.cpp:531
NoiseGenerator * YNoiseGen
Noisegenerator for noisy motor values.
Definition: derinf.h:114
bool useS
useS decides whether to use the S matrix in addition to the A matrix
Definition: derinf.h:37
matrix::Matrix ups
Definition: derinf.h:149
double motor
Definition: types.h:30
double cInit
cInit size of the C matrix to initialised with.
Definition: derinf.h:34
paramval dampH
damping of H vector
Definition: derinf.h:188
int t_delay
Definition: derinf.h:184
matrix::Matrix H
Controller Bias.
Definition: derinf.h:110
matrix::Matrix Dinverse
Inverse Noise Matrix.
Definition: derinf.h:109
matrix::Matrix A
Model Matrix (motors to sensors)
Definition: derinf.h:101
matrix::Matrix P
A*G'*C.
Definition: derinf.h:116
virtual void management()
handles inhibition damping etc.
Definition: derinf.cpp:415
paramval gamma
Definition: derinf.h:195
void getLastMotors(motor *motors, int len)
Definition: derinf.cpp:403
virtual ~DerInf()
Definition: derinf.cpp:63
virtual void learnController(int delay)
learn values H,C This is the implementation uses a better formula for g^-1 using Mittelwertsatz ...
Definition: derinf.cpp:251
virtual bool restore(FILE *f)
loads the controller values from a given file.
Definition: derinf.cpp:433
virtual iconnectionlist getStructuralConnections() const
Specifies which parameter matrix forms a connection between layers (in terms of a neural network) The...
Definition: derinf.cpp:539
matrix::Matrix HY
Controller Bias-Y.
Definition: derinf.h:111
DerInf(const DerInfConf &conf=getDefaultConf())
Definition: derinf.cpp:29
double grang2
Definition: derinf.h:133
double TLE
Definition: derinf.h:131
matrix::Matrix RG
Granger1.
Definition: derinf.h:117
double sense
Definition: derinf.h:140
matrix::Matrix eta_smooth
Definition: derinf.h:156
double motor
Definition: abstractcontroller.h:49
matrix::Matrix y_smooth_long
Definition: derinf.h:155
std::list< ILayer > ilayerlist
Definition: inspectable.h:87
matrix::Matrix Q1
Definition: derinf.h:119
virtual double calcMatrixNorm(const matrix::Matrix &m)
calculates the city block distance (abs) norm of the matrix. (abs sum of absolutes / size of matrix) ...
Definition: derinf.cpp:550
class for robot controller is based on InvertMotorNStep
Definition: derinf.h:49
matrix::Matrix G
Definition: derinf.h:169
std::list< iparamkey > iparamkeylist
Definition: inspectable.h:59
std::list< iparamval > iparamvallist
Definition: inspectable.h:61
double pain
if the modelling error (xsi) is too high we have a pain signal
Definition: derinf.h:130
matrix::Matrix xsi
current output error
Definition: derinf.h:127
double xsi_norm
norm of matrix
Definition: derinf.h:128
matrix::Matrix R
C*A.
Definition: derinf.h:115
matrix::Matrix y_error
Definition: derinf.h:160
matrix::Matrix Rm1
R^-1.
Definition: derinf.h:122
matrix::Matrix PID_deriv
Definition: derinf.h:162
int managementInterval
interval between subsequent management function calls
Definition: derinf.h:185
int c
Definition: hexapod.cpp:56
paramval PIDint
Definition: derinf.h:192
static DerInfConf getDefaultConf()
Definition: derinf.h:83
matrix::Matrix C_updateOld
Definition: derinf.h:163
matrix::Matrix S
additional Model Matrix (sensors to sensors)
Definition: derinf.h:104
virtual void stepNoLearning(const sensor *, int number_sensors, motor *, int number_motors)
performs one step without learning. Calulates motor commands from sensor inputs.
Definition: derinf.cpp:202
matrix::Matrix ATA_inv
Definition: derinf.h:121
matrix::Matrix ID
identity matrix in the dimension of R
Definition: derinf.h:123
matrix::Matrix x_intern
Definition: derinf.h:180
Interface and basic class for noise generator.
Definition: noisegenerator.h:37