The Complete SPRLIB & ANNLIB

best_matching_unit

- find the unit with the smallest output value in a Kohonen net

SYNOPSIS

UNIT *best_matching_unit (net)

ARGUMENTS

NET *net A pointer to a Kohonen type network.

RETURNS

A pointer to the best matching unit if succesful, NULL if not.

FUNCTION

This function walks down the linked list of units in NET and returns a pointer to the unit with the smallest Value.Output field. Since the activation function is the squared Euclidian distance (ActSqEucDist), an output value of 0 indicates an exact match whereas large values indicate mismatching.

NOTE

This function is used by the koh_learn function.

SEE ALSO

koh_adapt_net, koh_learn

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