Sha256: 643fce9d117f19d9fe4e142fc1a8e146afcab3dfb12a18370b8b0a217f1e015b
Contents?: true
Size: 318 Bytes
Versions: 2
Compression:
Stored size: 318 Bytes
Contents
## Array#ideal_entropy require 'facets/array/entropy' Returns the maximum possible Shannon entropy of the array with given size assuming that it is an "order-0" source (each element is selected independently of the next). %w{ a b }.ideal_entropy.assert == 1.0 %w{ a a b b }.ideal_entropy.assert == 2.0
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
facets-glimmer-3.2.0 | demo/core/array/ideal_entropy.md |
facets-3.1.0 | demo/core/array/ideal_entropy.md |