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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDBjZWQ3Mzg5ZmE3ZTgzMDQ2NDViOGQ3ODU1ZDk2ODVlNjQyZDE2Ng==
4
+ ZDc0ODg1YWVmNDQxYzM2MjYwZDk5MDU4ODk5YzUxY2I5MWNiNDk2YQ==
5
5
  data.tar.gz: !binary |-
6
- NDMxNDc1ODI2MDkyZTI1NTVjZTc0ZmU0MGY1MzM2MDQ2ZmQ1YzU2Yw==
6
+ ZWZkMWU0ZWY5MDFjZTJiNjNmOTU3YjA0MDI0YWQyYTE1YzdlN2MwOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTA5Y2M1M2MzMjBkZmU0MTNkNTliNzhiZTNlZTI5NTM3MGFhYmQ1ZGU3NDNh
10
- YTBiOWViNWQ1YmE4ZWFlOTg4NzZiMzdkZjY3ZDFjYTJjNjM0ZTQ0ZjNiNzNi
11
- ZjAwZjVmNGFjMmU1ZTM3NDYwM2FiOGQ2YzczMjdmNzBjN2YwMzI=
9
+ YTdkODg4ODk5NGQ4MGU4MDk5ZTU2ZDNjOTQxY2Q2MDU1N2Y5N2I5YWNmZjIz
10
+ NzdhNzYxMDk0OTY4ZWIzM2E5ZTM4MWZhMDMxZDg1NmYxZWE5MWM4ODQ1Mjdi
11
+ NDU5ZWJlOWRkOWNjNjk0MTE2ZmVkMzRiOTIyM2U3ODZmNjg3ODA=
12
12
  data.tar.gz: !binary |-
13
- OGUwZTBkZDEyYTEyZjg0YjkwMTQ0NjgzYzUxYWZkZmJkZTRlYTQ0ZmZmY2M3
14
- MWJkMTEzM2Q0NDc4OTdkMmM1MGYxY2ZjNDAxZWU0NjNjNzFlOTRmZDRiMmIx
15
- Y2QxOGQ5OWU3ZGUwMzQ1Zjc3YjVlYjAyZDE2NGM5NTRkYmJlMGY=
13
+ NTIyZTc1YmQ3YjA4ZTcyMDhiN2I2MWQ2NGFjNWE2YzBhN2FjMDBlMzdlMDk0
14
+ ZDkxYTE1OGQwZmNmNTcyZjk4YTE1YmJkYTEyY2NiMTJiOGE0MTYzMTA0NTZm
15
+ ZWNmNjViNzgxM2ZiZWUzMWM4MzQzY2UxNGJhZDY1MWJhYjgzOTY=
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ 0.0.3 / 2014-01-13
2
+
3
+ * Enhancements
4
+
5
+ * Decrease rate by which sampling is increased as gap increases (by switching to log 10)
6
+
1
7
  0.0.2 / 2014-01-10
2
8
 
3
9
  * Bug fixes
@@ -1,3 +1,3 @@
1
1
  class Rangefinder
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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 > Math::E ? samp * Math.log(gap) : samp
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.2
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 00:00:00.000000000 Z
11
+ date: 2014-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ranges_merger