loganb-kder 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/kder/version.rb +1 -1
- data/lib/util/enum_extensions.rb +4 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: fbdb660b13febb40cf75beddaddcc522d91dc47fe5affcecc3bd78502f1b14eb
|
4
|
+
data.tar.gz: bf3de9ffff8a9a4477eb2dde8b10b43bf1a21eeb70a1dd68e434cab731ed0604
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 618843be2f563573d57bc87ef2851a8a4a82175498485a75c646209f8778bbe5fbf7d2caabdd7c4f2bb129537fcaa1c81f221cdfa3be741f46e34a6bea66ed64
|
7
|
+
data.tar.gz: 318c28586a7e296f8f0947ea4534b4441ce981d5f9378b0ad556ff282345930c268e5a5ce7c440c1be5c914b8c73a35732d57ac8ef3a85fedb5fa01aa8cfb8d5
|
data/lib/kder/version.rb
CHANGED
data/lib/util/enum_extensions.rb
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
module Enumerable
|
2
2
|
# Thanks StackOverflow users!
|
3
3
|
# http://stackoverflow.com/questions/7749568/how-can-i-do-standard-deviation-in-ruby
|
4
|
-
|
5
|
-
|
4
|
+
unless(method_defined? :sum)
|
5
|
+
def sum
|
6
|
+
self.inject(:+)
|
7
|
+
end
|
6
8
|
end
|
7
9
|
def mean
|
8
10
|
self.sum/self.length.to_f
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loganb-kder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Taylor
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-09-21 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A KDE implementation in Ruby.
|
15
15
|
email:
|
@@ -44,7 +44,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
44
44
|
version: '0'
|
45
45
|
requirements: []
|
46
46
|
rubyforge_project:
|
47
|
-
rubygems_version: 2.
|
47
|
+
rubygems_version: 2.7.10
|
48
48
|
signing_key:
|
49
49
|
specification_version: 4
|
50
50
|
summary: Kernel Density Estimation, and an associated bandwidth estimator, rudimentary
|