mirror of
https://github.com/creyD/entro.py.git
synced 2026-04-12 12:00:28 +02:00
Added 'bits' to the entropy output
This commit is contained in:
@@ -33,7 +33,7 @@ def printEntropy(original, entropy, alphabet, simple):
|
||||
if simple == False:
|
||||
print('Content: ' + original)
|
||||
print('Probabilities: ' + str(alphabet))
|
||||
print('Entropy: ' + str(entropy))
|
||||
print('Entropy: ' + str(entropy) + ' bits')
|
||||
print('---')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user