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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e5b8c12f1724491f1d7e1030dca865ca131aff67
4
- data.tar.gz: dd269d0ef838ebe5d6c45a62288f2b688971a1fe
2
+ SHA256:
3
+ metadata.gz: fbdb660b13febb40cf75beddaddcc522d91dc47fe5affcecc3bd78502f1b14eb
4
+ data.tar.gz: bf3de9ffff8a9a4477eb2dde8b10b43bf1a21eeb70a1dd68e434cab731ed0604
5
5
  SHA512:
6
- metadata.gz: 1964cd8f5e3446644fc5f26e623c953a94e56dd2f0efac20b2ec42164d458f71038eba37c521034166909b983875e82d6ca66b74f3a71dd625b2168d2d9bdc01
7
- data.tar.gz: '07429b569c86eeef572489945412a478ef4329162fb0325b520ed6ac15bb8cabca511d10ee2fd994f72330cf804e1d3b443813bfcea28a0a425f8d003ba629fe'
6
+ metadata.gz: 618843be2f563573d57bc87ef2851a8a4a82175498485a75c646209f8778bbe5fbf7d2caabdd7c4f2bb129537fcaa1c81f221cdfa3be741f46e34a6bea66ed64
7
+ data.tar.gz: 318c28586a7e296f8f0947ea4534b4441ce981d5f9378b0ad556ff282345930c268e5a5ce7c440c1be5c914b8c73a35732d57ac8ef3a85fedb5fa01aa8cfb8d5
data/lib/kder/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Kder
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -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
- def sum
5
- self.inject(:+)
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.3
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: 2017-11-18 00:00:00.000000000 Z
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.5.2.1
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