Skip to content

Commit

Permalink
Update files
Browse files Browse the repository at this point in the history
  • Loading branch information
ffalpha committed Sep 1, 2021
1 parent 3a1aa6e commit 41914f9
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 8 deletions.
36 changes: 34 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,34 @@
# Entropy-Calucalator-
Conations a python package for various entropy calculations

<div id="headline" align="center">
<h1>Entropy-Calucalator</h1>
<p>Conations a python package for various type of entropy calculations</p>
</div>





### Requirements
- None
### Installation
```
pip install entropyshannon
```

### Basic example

```py
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))


```



2 changes: 1 addition & 1 deletion __int__.py → entropyshannon copy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@



def shanon_entropy(string):
def shannon_entropy(string):
"""
Calculates the Shannon entropy for the given string.
:param string: String to parse.
Expand Down
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@


setup(
name='Shanon entropy',
version='0.0.0',
description='entropy is a command line friend that helps you reduce entropy in your life',
name='entropyshannon',
version='0.0.1',
description='A python package for various type of entropy calculations(Specially Shannon)',
long_description=open('README.md',encoding='UTF-8').read(),
long_description_content_type='text/markdown',
author='Kalana Mihiranga',
author_email='[email protected]',
license='MIT',
keywords=['entropy', 'shannon', 'journaling'],
url='https://github.com/h4ck3rk3y/entropy',
keywords=['entropy', 'shannon', 'calculator'],
url='https://github.com/ffalpha/Entropy-Calucalator',
packages=find_packages()
)

0 comments on commit 41914f9

Please sign in to comment.