1 2 3 4 5 6 7 8 9 10 11
module OpenTox module Utils # gauss kernel def self.gauss(sim, sigma = 0.3) x = 1.0 - sim Math.exp(-(x*x)/(2*sigma*sigma)) end end end