From 91781c18c8c2c33783f30e64172f11ae9180a6d1 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Wed, 16 Mar 2011 15:40:46 +0100 Subject: conversion to float in Math.gauss --- lib/algorithm.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3 From 9925043c4d7784c8e80664fbfaf71c4cfdd80a0d Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Wed, 16 Mar 2011 15:41:53 +0100 Subject: Version bump to 1.0.2 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 7f20734..e6d5cb8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.1 \ No newline at end of file +1.0.2 \ No newline at end of file -- cgit v1.2.3 From baa94c2520c49846ccdbb43c72bb9d04212fa2f1 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Wed, 16 Mar 2011 15:50:23 +0100 Subject: conversion to float in Math.gauss --- opentox-ruby.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentox-ruby.gemspec b/opentox-ruby.gemspec index 2f4370a..289dacd 100644 --- a/opentox-ruby.gemspec +++ b/opentox-ruby.gemspec @@ -5,7 +5,7 @@ Gem::Specification.new do |s| s.name = %q{opentox-ruby} - s.version = "1.0.1" + s.version = "1.0.2" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Christoph Helma, Martin Guetlein, Andreas Maunz, Micha Rautenberg, David Vorgrimmler"] -- cgit v1.2.3