descriptive-statistics 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -3
- data/lib/descriptive-statistics.rb +1 -1
- data/lib/descriptive-statistics/version.rb +1 -1
- metadata +4 -4
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.
|
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])
|
52
|
-
stats
|
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
|
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.
|
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-
|
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:
|
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:
|
94
|
+
hash: -837889247125983920
|
95
95
|
requirements: []
|
96
96
|
rubyforge_project:
|
97
97
|
rubygems_version: 1.8.24
|