lib/kalibera/data.rb in kalibera-0.1.1 vs lib/kalibera/data.rb in kalibera-0.1.2
- old
+ new
@@ -4,11 +4,11 @@
require "bigdecimal"
require "memoist"
module Kalibera
- CONSTANTS = RBzip2::Decompressor.new(StringIO.new(Base64.decode64("""\
+ CONSTANTS = RBzip2.default_adapter::Decompressor.new(StringIO.new(Base64.decode64("""\
QlpoOTFBWSZTWbTS4VUAC9bYAEAQAAF/4GAOGZ3e40HH2YJERUKomGbCNMAAtMBaAkCOP9U0/R+q
qNCqfjAqVGOY3+qk96qmmIp+CCVNDD/1VGjfqkBJpIElG6uN92vE/PP+5IxhMIIgAbOxEMKLMVSq
VWtZmZaEklAAAttoAAAAAAAAAAAAEklAAEklABttkksklkkknVu2dX1vW9yWrkuXJJJJJJJJJJKK
JWsS5dq7k3RRRbu2222227oAAFQqFCAjkB0w7eMpKWy3bVI42225QlbQAAAAAAlbQbbUqkolE7JZ
jjjmS5LluZkuZmZmZmZmZmZvZhOYnktttsskiaSSToAAA5znOZmMzGTSSJJJ1JO+7gLbR067u48V
@@ -288,10 +288,10 @@
#
# Keyword arguments:
# iterations -- Number of resamples (and thus means) generated.
def bootstrap_means(iterations=1000)
means = []
- for i in 0...iterations
+ for _ in 0...iterations
values = bootstrap_sample()
means.push(Kalibera.mean(values))
end
means.sort()
means