Sha256: 60492fa5dd79afab5b013cedc48f20d2a65e81a50e8105f9176e869eb5adbd79
Contents?: true
Size: 362 Bytes
Versions: 5
Compression:
Stored size: 362 Bytes
Contents
require(File.expand_path(File.dirname(__FILE__) + '/helpers_tests.rb')) class StatsampleTestVector < Minitest::Test should 'return correct histogram' do a = Daru::Vector.new(10.times.map { |v| v }) hist = a.histogram(2) assert_equal([5, 5], hist.bin) 3.times do |i| assert_in_delta(i * 4.5, hist.get_range(i)[0], 1e-9) end end end
Version data entries
5 entries across 5 versions & 2 rubygems