The Complete SPRLIB & ANNLIB

ActEucDist

- activation function

SYNOPSIS

double ActEucDist (unit)

ARGUMENTS

UNIT *unit A pointer to a UNIT structure.

RETURNS

The activation of unit: the euclidian distance between the weights and the inputs.

FUNCTION

The function traverses the linked list of incoming links - the InLinks - and sums the squared differences of each LINK 's weight value and the output value of the unit it points to. Finally, this sum is divided by the UNIT 's bias (theta) and the square root of that value is returned. In formula: SQRT (((W1 - O1)^2 + (W2 - O2)^2 + ... + (Wn - On)^2) / B).

SEE ALSO

ActInprod, ActSqEucDist, FUNCTION, get_act_func_name, get_act_func_ptr

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998