No project description provided
Project description
pyKDA
pyKDA is a Python library for the Kemeny Decomposition Algorithm (KDA).
Installation
Use the package manager pip to install pyKDA.
pip install pyKDA
Usage
import pyKDA
import numpy as np
P = np.array(
[
[0.0, 0.52493781, 0.47506219],
[0.0, 0.66666667, 0.33333333],
[0.06666667, 0.33333333, 0.6],
]
)
MC = MarkovChain(P)
print(MC.stationary_distribution())
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pykda-0.1.0.tar.gz
(5.5 kB
view hashes)
Built Distribution
pykda-0.1.0-py3-none-any.whl
(7.0 kB
view hashes)