rubystats 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.2.1 / 2008-05-08
2
+ * Bug fix for Normal Distribution RNG function (RubyForge bug #20044)
3
+ * thanks, Daniel Moore (yahivin)
4
+
1
5
  === 0.2.0 / 2008-04-14
2
6
 
3
7
  * Major reorganization of code.
data/lib/rubystats.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Rubystats
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
4
4
 
5
5
  require 'rubystats/normal_distribution'
@@ -101,7 +101,7 @@ module Rubystats
101
101
  r2 = Kernel.rand
102
102
  x1 = 2.0 * r1 - 1.0
103
103
  x2 = 2.0 * r2 - 1.0
104
- w = x1 * x1 * x2 * x2
104
+ w = x1 * x1 + x2 * x2
105
105
  end
106
106
  w = Math.sqrt((-2.0 * Math.log(w)) / w)
107
107
  y1 = x1 * w
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubystats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Donovan - http://www.bryandonovan.com
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-04-15 00:00:00 +00:00
12
+ date: 2008-05-08 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  requirements: []
78
78
 
79
79
  rubyforge_project: rubystats
80
- rubygems_version: 1.1.0
80
+ rubygems_version: 1.1.1
81
81
  signing_key:
82
82
  specification_version: 2
83
83
  summary: Port of PHPMath to Ruby