easystats 0.4.0.rc1 → 0.4.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Easystats
2
- VERSION = "0.4.0.rc1"
2
+ VERSION = "0.4.0.rc2"
3
3
  end
data/lib/easystats.rb CHANGED
@@ -39,7 +39,7 @@ class Array
39
39
 
40
40
  total = count.to_f
41
41
 
42
- inject({}) { |result, item|
42
+ uniq.inject({}) { |result, item|
43
43
  result.update({ item => count(item) / total })
44
44
  }
45
45
  end unless method_defined? :probability_distribution
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Array do
4
- DELTA = 0.00000000000001
4
+ DELTA = 1.0e-14
5
5
 
6
6
  it { should respond_to :average }
7
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easystats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.rc1
4
+ version: 0.4.0.rc2
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: