Returns a list of neurons which are on the border between 2 or more classes.
get.border.neurons(p, classes, model, distance = 1.1)
numeric vector with the indices of all border neurons.
prediction for training data set
vector of true class lables for prediction
Object of class type SOMnn
maximum distance of 2 neurons to be the border. Default 1.1: only direct neighbours.
The function analyses all pairs of neurons with distance <= distance
.
If samples represented by the pair belong to more than one class, both neurons
are added to the list.