Neural Network Toolbox
  Go to function:
    Search    Help Desk 
linkdist    Examples   See Also

Link distance function

Syntax

d = linkdist(pos)

Description

linkdist is a layer distance function used to find the distances between the layer's neurons given their positions.

linkdist(pos) takes one argument,

and returns the S x S matrix of distances.

Examples

Here we define a random matrix of positions for 10 neurons arranged in three dimensional space and find their distances.

Network Use

You can create a standard network that uses linkdist as a distance function by calling newsom.

To change a network so that a layer's topology uses linkdist, set net.layers{i}.distanceFcn to 'linkdist'.

In either case, call sim to simulate the network with dist. See newsom for training and adaption examples.

Algorithm

The link distance D between two position vectors Pi and Pj from a set of S vectors is:

See Also

sim, dist, mandist



[ Previous | Help Desk | Next ]