Sha256: 15d5657aec857b643e9cbe461202f8c6406e5898a061a96a25dabcb689f2ed9b

Contents?: true

Size: 237 Bytes

Versions: 4

Compression:

Stored size: 237 Bytes

Contents

covers 'facets/array/entropy'

testcase Array do

  unit :entropy do
    %w{ a b }.entropy.assert == 1.0
  end

  unit :ideal_entropy do
    %w{ a b }.ideal_entropy.assert == 1.0
    %w{ a a b b }.ideal_entropy.assert == 2.0
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facets-2.9.1 test/core/array/test_entropy.rb
facets-2.9.0 test/core/array/test_entropy.rb
facets-2.9.0.pre.2 test/core/array/test_entropy.rb
facets-2.9.0.pre.1 test/core/array/test_entropy.rb