# File lib/ai4r/som/layer.rb, line 48 def influence_decay(distance, radius) Math.exp(- (distance.to_f**2 / 2.0 / radius.to_f**2)) end