Sha256: 87bc0f6de51630d4bd33a5dcc5c57a379b5142b66f12cbb1a3f7208437dc7eb0
Contents?: true
Size: 292 Bytes
Versions: 5
Compression:
Stored size: 292 Bytes
Contents
covers 'facets/array/entropy' test_case Array do method :entropy do test do %w{ a b }.entropy.assert == 1.0 end end method :ideal_entropy do test do %w{ a b }.ideal_entropy.assert == 1.0 %w{ a a b b }.ideal_entropy.assert == 2.0 end end end
Version data entries
5 entries across 5 versions & 2 rubygems