lib/util.rb in quant-0.0.3 vs lib/util.rb in quant-0.0.4

- old
+ new

@@ -1,9 +1,9 @@ module Util def self.compare_2_arrays_of_floats(a, b) - delete_nans_and_truncate_floats_to_strings(a) == delete_nans_and_truncate_floats_to_strings(b) + a.length == b.length && delete_nans_and_truncate_floats_to_strings(a) == delete_nans_and_truncate_floats_to_strings(b) end def self.truncate_float_to_string(f) "%.10f" % f end @@ -16,8 +16,8 @@ o = [] opens.each_with_index do |e, i| o << [opens[i], highs[i], lows[i], closes[i]] end o - end + end end \ No newline at end of file