}
for (int x = xstart; x < xend; x++) {
for (int y = ystart; y < yend; y++) {
temp = lattice.getNeuron(x, y);
dist = bmu.distanceTo(temp);
if (dist <= (nbhRadius * nbhRadius)) {
dFalloff = getDistanceFalloff(dist, nbhRadius);
temp.updateWeights(curInput,
learningRate, dFalloff);
}