lib/split/algorithms/weighted_sample.rb in split-1.3.2 vs lib/split/algorithms/weighted_sample.rb in split-1.4.0
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
module Split
module Algorithms
module WeightedSample
def self.choose_alternative(experiment)
weights = experiment.alternatives.map(&:weight)
@@ -12,6 +13,6 @@
point -= w
end
end
end
end
-end
\ No newline at end of file
+end