quantile 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YTY1OWFhZDFkYjBmZjMyYmZhYmNiMDNlODU4NGE0NDBmYjNmZDA3NA==
5
- data.tar.gz: !binary |-
6
- NTk4YjM5MzFkZjc1YzdhMjVhNzczNTYzOTBjMzc1NGFiYjFlYzE4Mg==
2
+ SHA256:
3
+ metadata.gz: 391d5752f9aab4b5f5e7949eed76b488f31256289431ce77086337df53d58d67
4
+ data.tar.gz: 0c7af3173cf7badcb6525fe2c3505cd15ea9ff927c6c1a92664853ddb271b681
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YzA5MzQ3MTJlMTQxOWQyMmQwNThkY2FjY2FlY2U1MjBhOWEzY2UwM2Q2ZDRk
10
- MWUzZGVjNzgxYTUyOGFiZjEzNjc5Zjk4ODhiNjNhZjc3YTY5YTc4N2E4Yjcy
11
- OGJhYjI5YzA4YmFhNmQ4ZDBkZmRjNjVmM2U5NmNmMTNmMjE2OTg=
12
- data.tar.gz: !binary |-
13
- ODRhYWY2YTUyYjRhNjc5MjA4ODQzZTViODk0OTBiZjJiMzk4NmY2NGZmNmZm
14
- MzZmNjNiODU3N2YzZDVhNTFmM2RkMTU0ZjQ1MjAxMjFmYTAxOTY1MjgwYjg5
15
- YTgwMTU1OWJjODQ0NTg3MTllYzk3NTAwYTg2ZDQ0ZjNhYjEzODg=
6
+ metadata.gz: 3f7944ec0ca5d9da78ebce682fe4fefbbef4a34349d01147197bb0cbed99d12528d71ef6166b27da39f1a383968489d1dc674d8426857117bf61491efade106a
7
+ data.tar.gz: 2cc02589defb62ff7978efd1da453022975cb736ab45beb978b61c71bdd4df0a1ddc6386b58605a73c03ba087ccfc81ddd9fb4567aef6f965885d14cb3503bea
@@ -138,11 +138,12 @@ module Quantile
138
138
  current = current.successor
139
139
  end
140
140
 
141
- unless current.successor
141
+ if current.successor
142
+ current.successor = record(s, 1, invariant(rank, @observations)-1, current.successor)
143
+ else
142
144
  current.successor = record(s, 1, 0, nil)
143
145
  end
144
-
145
- current.successor = record(s, 1, invariant(rank, @observations)-1, current.successor)
146
+ current = current.successor
146
147
  end
147
148
  end
148
149
 
@@ -12,5 +12,5 @@
12
12
  # limitations under the License.
13
13
 
14
14
  module Quantile
15
- VERSION = '0.2.0'
15
+ VERSION = '0.2.1'
16
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quantile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt T. Proud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-20 00:00:00.000000000 Z
11
+ date: 2018-05-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Graham Cormode and S. Muthukrishnan's Effective Computation of Biased
14
14
  Quantiles over Data Streams in ICDE’05
@@ -17,12 +17,12 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - LICENSE
21
+ - README.md
20
22
  - lib/quantile.rb
21
23
  - lib/quantile/estimator.rb
22
24
  - lib/quantile/quantile.rb
23
25
  - lib/quantile/version.rb
24
- - README.md
25
- - LICENSE
26
26
  homepage: http://github.com/matttproud/ruby_quantile_estimation
27
27
  licenses:
28
28
  - Apache 2.0
@@ -33,17 +33,17 @@ require_paths:
33
33
  - lib
34
34
  required_ruby_version: !ruby/object:Gem::Requirement
35
35
  requirements:
36
- - - ! '>='
36
+ - - ">="
37
37
  - !ruby/object:Gem::Version
38
38
  version: '0'
39
39
  required_rubygems_version: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - ! '>='
41
+ - - ">="
42
42
  - !ruby/object:Gem::Version
43
43
  version: '0'
44
44
  requirements: []
45
45
  rubyforge_project:
46
- rubygems_version: 2.1.11
46
+ rubygems_version: 2.7.6
47
47
  signing_key:
48
48
  specification_version: 4
49
49
  summary: Streaming Quantile Estimation