The Complete SPRLIB & ANNLIB

PTRON

- a structure for perceptron learning

SYNOPSIS

typedef struct perceptron

{

char *name; The perceptron name.

int nin; Number of inputs.

int nout; Number of outputs.

int nlearn; Counter for the number of learning patterns.

int mode; Mode flag - see PTRON-flags.

double (*f)(); Pointer to the output function.

double (*df)(); Pointer to the derivative of the output function.

union w_tag w; Discrimination vector or matrix.

union w_tag dw; Vector or matrix used for training.

} PTRON;

typedef union w_tag

{

double *vect; Used if nout = 1.

double **mat; Used if nout > 1.

} ;

SEE ALSO

PTRON-flags, learn_ptron

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