rangefinder 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG +6 -0
- data/lib/rangefinder/version.rb +1 -1
- data/lib/rangefinder.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDc0ODg1YWVmNDQxYzM2MjYwZDk5MDU4ODk5YzUxY2I5MWNiNDk2YQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWZkMWU0ZWY5MDFjZTJiNjNmOTU3YjA0MDI0YWQyYTE1YzdlN2MwOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTdkODg4ODk5NGQ4MGU4MDk5ZTU2ZDNjOTQxY2Q2MDU1N2Y5N2I5YWNmZjIz
|
10
|
+
NzdhNzYxMDk0OTY4ZWIzM2E5ZTM4MWZhMDMxZDg1NmYxZWE5MWM4ODQ1Mjdi
|
11
|
+
NDU5ZWJlOWRkOWNjNjk0MTE2ZmVkMzRiOTIyM2U3ODZmNjg3ODA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTIyZTc1YmQ3YjA4ZTcyMDhiN2I2MWQ2NGFjNWE2YzBhN2FjMDBlMzdlMDk0
|
14
|
+
ZDkxYTE1OGQwZmNmNTcyZjk4YTE1YmJkYTEyY2NiMTJiOGE0MTYzMTA0NTZm
|
15
|
+
ZWNmNjViNzgxM2ZiZWUzMWM4MzQzY2UxNGJhZDY1MWJhYjgzOTY=
|
data/CHANGELOG
CHANGED
data/lib/rangefinder/version.rb
CHANGED
data/lib/rangefinder.rb
CHANGED
@@ -51,7 +51,7 @@ class Rangefinder
|
|
51
51
|
last_good = i
|
52
52
|
gap = 0
|
53
53
|
end
|
54
|
-
samp1 = gap >
|
54
|
+
samp1 = gap > 10 ? samp * Math.log(gap, 10) : samp
|
55
55
|
i += (rand(100) * (1 - samp1)).round
|
56
56
|
end until i >= last or (gap > max_gap and anything) # sorry for mixed metaphor
|
57
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rangefinder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seamus Abshere
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ranges_merger
|