Gaussian Neighborhood Function for the Self-Organizing Map

Given the following variables: Then, for each output node, the scaling factor is:
e-d2 / (2c2)
Multiply each weight update by this scaling factor. There is no longer any need to check neighborhood membership; the Gaussian reduces the impact exponentially as the radius shrinks.