descriptive-statistics 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -34,7 +34,7 @@ stats.mode #=> 1
34
34
  stats = DescriptiveStatistics.new([1,1,2,3,10])
35
35
  stats.range #=> 9
36
36
  stats.min #=> 1
37
- stats.range #=> 10
37
+ stats.max #=> 10
38
38
  stats.percentile_from_value(10) #=> 80
39
39
  stats.value_from_percentile(60) #=> 3
40
40
  ```
@@ -48,8 +48,9 @@ stats.standard_deviation #=> 3.7815340802378072
48
48
 
49
49
  ### Other Measures:
50
50
  ```ruby
51
- stats = DescriptiveStatistics.new([1,1,2,3,10]).skewness #=> 1.188328915820243
52
- stats = DescriptiveStatistics.new([1,1,2,3,10]).kurtosis #=> 2.405613966453127
51
+ stats = DescriptiveStatistics.new([1,1,2,3,10])
52
+ stats.skewness #=> 1.188328915820243
53
+ stats.kurtosis #=> 2.405613966453127
53
54
  ```
54
55
 
55
56
  ## Contributing
@@ -15,5 +15,5 @@ class DescriptiveStatistics
15
15
  @data = data
16
16
  end
17
17
 
18
- def_delegators :@data, :length, :inject, :sort, :each, :each_with_object, :min, :max
18
+ def_delegators :@data, *(Array.instance_methods - [:object_id, :__send__])
19
19
  end
@@ -1,5 +1,5 @@
1
1
  module Descriptive
2
2
  module Statistics
3
- VERSION = "1.2.1"
3
+ VERSION = "1.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: descriptive-statistics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-02 00:00:00.000000000 Z
12
+ date: 2012-10-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -82,7 +82,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  segments:
84
84
  - 0
85
- hash: 290274969783766992
85
+ hash: -837889247125983920
86
86
  required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  none: false
88
88
  requirements:
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  segments:
93
93
  - 0
94
- hash: 290274969783766992
94
+ hash: -837889247125983920
95
95
  requirements: []
96
96
  rubyforge_project:
97
97
  rubygems_version: 1.8.24