- a type for bookkeeping of activation and transfer functions (LOCAL)
SYNOPSIS
typedef struct _FUNCTION
{
char
name[32];
The name of a function.
double
(*function)();
A pointer to a function.
int
no_parameters;
The number of parameters a function takes.
} FUNCTION;
DESCRIPTION
This type is used in the activation / transfer function name-pointer translation
and checking scheme. If a new activation or transfer function is added,
a FUNCTION record should be added to one of the FUNCTION-variables.
This keeps the checking of the validity of activation or transfer functions
easy to maintain.