Skip to content

ffalpha/Entropy-Calucalator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Entropy-Calucalator

Conations a python package for various type of entropy calculations

PyPI version

Requirements

  • None

Installation

pip install entropyshannon

Basic example

from entropyshannon import *

string_entropy=shannon_entropy("12311331")
print(string_entropy)


probability_list=[1/2,1/3,1/10,7/10]
print(shannon_entropy_probability_list(probability_list))