NAME

hebb_unit - create hebb-neuron unit

PROTOTYPE

unitptr hebb_unit( int n, float (*f)(float), int mode, unitptr dest)

ARGUMENTS

int n
dimensionality of input vector
float (*f)(float)
activation function (identity, if f==NULL)
int mode
mode parameter (see below)
unitptr dest
host unit for newly created instance

RETURN VALUE:

unitptr u:
pointer to newly created unit

INTERFACE OF CREATED UNIT:

X_in[n]:
(input field 0) input vector
Y_in[1]:
(input field 1) [not used]
EPS_in[1]:
(input field 2) adaptation gain eps
CTL_in[1]:
(input field 3) control input c
X_out[1]:
(output field 0) scalar output value
for mode = 2 or 3,
Y_out[n]:
(packed output field 1) internal weight vector w[]

EXECUTION:


     X_out[0] = (1-c) * X_out[0] + c * f( sum_i w[i] * X_in[i] ).

FILE

/amnt/loge/users/nistaff02/nistaff/rhaschke/nst7/man/../o.linux//../foldersrc/nst_adaptive.c