diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-03-31 14:16:11 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-03-31 14:16:11 +0200 |
commit | 2fcaf3cd3c68b8e679ecf77f70285778495d78c2 (patch) | |
tree | 6a3e24abf27b05484ada5d34ae7889729ab5dacd /lib | |
parent | c0bef2dc83d2ce1fea6434ca73586d49865bb810 (diff) | |
parent | baa94c2520c49846ccdbb43c72bb9d04212fa2f1 (diff) |
Merge branch 'master' into feature/external
Diffstat (limited to 'lib')
-rw-r--r-- | lib/algorithm.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/algorithm.rb b/lib/algorithm.rb index c8cb116..167c964 100644 --- a/lib/algorithm.rb +++ b/lib/algorithm.rb @@ -246,7 +246,7 @@ module OpenTox # Gauss kernel # @return [Float] def self.gauss(x, sigma = 0.3) - d = 1.0 - x + d = 1.0 - x.to_f Math.exp(-(d*d)/(2*sigma*sigma)) end |