mandist
(To be removed) Manhattan distance weight function
mandist will be removed in a future release. For more information,
see Transition Legacy Neural Network Code to dlnetwork Workflows.
For advice on updating your code, see Version History.
Description
takes an Z = mandist(W,P)S-by-R weight matrix, W,
and an R-by-Q matrix of Q input
(column) vectors, P, and returns the
S-by-Q matrix of vector distances,
Z.
mandist is the Manhattan distance weight function. Weight functions
apply weights to an input to get weighted inputs.
mandist is also a layer distance function, which can be used to find
the distances between neurons in a layer.
Examples
Input Arguments
Output Arguments
More About
Algorithms
The Manhattan distance D between two vectors X and
Y is
D = sum(abs(x-y))
Version History
Introduced before R2006aSee Also
Time Series Modeler | fitrnet (Statistics and Machine Learning Toolbox) | fitcnet (Statistics and Machine Learning Toolbox) | trainnet | trainingOptions | dlnetwork