lite-statistics 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/lite/statistics/enumerable.rb +19 -17
- data/lib/lite/statistics/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49b18fb367a9702f9aa7253b8a6f50b6536ef1e4cad177f0bdba2d8d207ca069
|
4
|
+
data.tar.gz: 5e63a6d3c6f6e4276379638a7d67791aad8f49504c4c7ac2c99f0d5faf7953c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca8ec918047e496c990f5a317167e353939c303affb7b32eb93193a28b8c18f1b1ea924f50bfa53fbbcf8b92cae0bd577e53f3fa3e806487b061790653c0f6e2
|
7
|
+
data.tar.gz: 7f819820a89cb88bc977a535df475cc021de63ff508ab301fac94c4d32e799db40aa2cf9b47cb54cf2dff5b358283ec78508c9f6ac03b064338d4285016c420b
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,24 +1,26 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
if Lite::Statistics.configuration.monkey_patches
|
4
|
+
module Enumerable
|
4
5
|
|
5
|
-
|
6
|
-
|
6
|
+
Lite::Statistics::Descriptive::CALCULATIONS.each do |name|
|
7
|
+
next if %i[max min sum].include?(name)
|
7
8
|
|
8
|
-
|
9
|
-
|
9
|
+
define_method(name) { |*args| Lite::Statistics::Descriptive.send(name, self, *args) }
|
10
|
+
end
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
12
|
+
alias average mean
|
13
|
+
alias coefficient_of_variation sample_coefficient_of_variation
|
14
|
+
alias kurtosis sample_kurtosis
|
15
|
+
alias midextreme midrange
|
16
|
+
alias percentile percentile_from_value
|
17
|
+
alias percentile_rank value_from_percentile
|
18
|
+
alias skewness sample_skewness
|
19
|
+
alias standard_deviation sample_standard_deviation
|
20
|
+
alias standard_error sample_standard_error
|
21
|
+
alias summary sample_summary
|
22
|
+
alias variance sample_variance
|
23
|
+
alias zscores sample_zscores
|
23
24
|
|
25
|
+
end
|
24
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lite-statistics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lite-memoize
|