The Complete SPRLIB & ANNLIB

delta_ptron

- calculate the weight changes for the perceptron (LOCAL)

SYNOPSIS

in delta_ptron (ptron, in, outval)

ARGUMENTS

PTRON *ptron Pointer to the perceptron to be updated.
double *in The input value, a vector of size [1..ptron->nin].
double *outval The desired ouput, a vector of size [1..ptron->nout].

RETURNS

The function returns TRUE if an error was detected and returns FALSE otherwise.

FUNCTION

This function computes the weight changes (delta weights) for a perceptron pointed to by ptron. The delta weights are computed by taking the difference between the output of the perceptron by inputting in and the desired ouput outval. These delta weights are added to the pctron structure, ie. added to ptron->dw. When training a perceptron the delta weights are used to update the perceptron weights. Furthermore pctron->nlearn is increased to indicate the number of added samples.

NOTE

The variables in and outval are in vector format.

SEE ALSO

widrow_hoff_ptron

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