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 +4 -4
- data/lib/descriptive_statistics/safe.rb +1 -0
- data/lib/descriptive_statistics/stats.rb +18 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 424b78572ef5dbc470842c2c98c582397d19e02c
|
4
|
+
data.tar.gz: 5fc10328260dbd61fb228cf82db14ce2a2392dca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8adf2b3c95be69c40b16a7704bf6251f20ce1c10535fabdfba0c9811b5dbe64dcc9625f3c11840d0e37bc3812af26b0d92faf3066f23f4a6a704ebf7ed44e35
|
7
|
+
data.tar.gz: 79a89003998c2f2ae6bce9f50d530ce7b8917c36064dad2b71d27ca7d9699416b58ee89fc856a774afa95330f660dbafcd3a87b0fc293c614981daa77f357ab3
|
@@ -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
|
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
|