Neural Network Toolbox™ Previous page   Next Page 
linkdist
 Provide feedback about this page

Link distance function

Syntax

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,

pos
N x S matrix of neuron positions

and returns the S x S matrix of distances.

Examples

Here you 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


 Provide feedback about this page 

Previous page learnwh logsig Next page

 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS