descriptive_statistics 2.0.1 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f41c7aa2782cd29511542a9b1b04a9760146598a
4
- data.tar.gz: 28eaee66c048a3c2bb67f4515ee2391e8e00fe34
3
+ metadata.gz: 424b78572ef5dbc470842c2c98c582397d19e02c
4
+ data.tar.gz: 5fc10328260dbd61fb228cf82db14ce2a2392dca
5
5
  SHA512:
6
- metadata.gz: 14aafb8721f10f2ab5bd2ed3693339149681e8d5e7f885ff221e29a8e6f8957a9743f96577bc7786d9e655920013731dac5767042c481aacb8bd74b740d64cd8
7
- data.tar.gz: 929a130fc177a8d4221e6383b4f67076ddec50babe1ebe79d80009fa8f15c3964c4f4ad019ed430bf5d691fc4460b00dc465001aaa612f6a26f790b748acfcc9
6
+ metadata.gz: c8adf2b3c95be69c40b16a7704bf6251f20ce1c10535fabdfba0c9811b5dbe64dcc9625f3c11840d0e37bc3812af26b0d92faf3066f23f4a6a704ebf7ed44e35
7
+ data.tar.gz: 79a89003998c2f2ae6bce9f50d530ce7b8917c36064dad2b71d27ca7d9699416b58ee89fc856a774afa95330f660dbafcd3a87b0fc293c614981daa77f357ab3
@@ -10,4 +10,5 @@ require 'descriptive_statistics/percentile.rb'
10
10
  require 'descriptive_statistics/percentile_rank.rb'
11
11
  require 'descriptive_statistics/range.rb'
12
12
  require 'descriptive_statistics/descriptive_statistics.rb'
13
+ require 'descriptive_statistics/stats.rb'
13
14
 
@@ -0,0 +1,18 @@
1
+ require 'forwardable'
2
+
3
+ module DescriptiveStatistics
4
+
5
+ class Stats
6
+ extend Forwardable
7
+
8
+ DescriptiveStatistics.instance_methods.each do |m|
9
+ def_delegator :@collection, m
10
+ end
11
+
12
+ def initialize(collection)
13
+ @collection = collection.clone.extend(DescriptiveStatistics)
14
+ end
15
+
16
+ end
17
+
18
+ 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: 2.0.1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derrick Parkhurst
@@ -33,6 +33,7 @@ files:
33
33
  - lib/descriptive_statistics/range.rb
34
34
  - lib/descriptive_statistics/safe.rb
35
35
  - lib/descriptive_statistics/standard_deviation.rb
36
+ - lib/descriptive_statistics/stats.rb
36
37
  - lib/descriptive_statistics/sum.rb
37
38
  - lib/descriptive_statistics/support/convert.rb
38
39
  - lib/descriptive_statistics/variance.rb