Calculate ring score for various data structures
Project description
ringity is a Python package to analyze various data structures with respect to their ring structure.
Bug reports: https://github.com/ClusterDuck123/ringity/issues
Contact Person: mk.youssef@hotmail.com
Documentation: Not available yet.
Notes
This package is still under construction!
Simple network example
Calculate ring score as described in [1]:
>>> import ringity as rng
>>> import networkx as nx
>>> G = nx.Graph()
>>> G.add_edges_from([(i%100,(i+1)%100) for i in range(100)])
>>> dgm = rng.diagram(G)
>>> dgm.ring_score()
1
[1]: Paper not available yet.
Simple point cloud example
Calculate ring score as described in [2]:
>>> import numpy as np
>>> import ringity as rng
>>> t = np.linspace(0, 2*np.pi, 100)
>>> X = np.array((np.cos(t),np.sin(t))).T
>>> rng.ring_score(X)
1
[2]: Paper not available yet.
Install
Install the latest version of ringity:
$ pip install ringity
Latest Changes
Changed foldername data to _data
The persistent diagram class PersistenceDiagram has ring_score now as a method, not as a property. As a result, the function is now called via dgm.ring_score() insted of dgm.ring_score! (Notice the change in brackets) We appologize if this is breaking old code; such changes will be avoided in the future.
Integration of various ring-score “flavours”.
Extended usage for point clouds.
Bugs
Please report any bugs that you find here. Or, even better, fork the repository on GitHub and create a pull request. All inputs, suggestions and changes are more than welcome!
License
Released under the MIT License (see LICENSE.txt):
Copyright (c) 2019 Markus K. Youssef <mk.youssef@hotmail.com>
How to cite
If you want to cite this package, please use the DOI: 10.5281/ZENODO.4908927
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ringity-0.3a6.tar.gz
.
File metadata
- Download URL: ringity-0.3a6.tar.gz
- Upload date:
- Size: 47.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b61d92dcc1d36677510a8e44c14a059e4e5d82dc1af2e1ec1ae0f3238268e98c |
|
MD5 | e0e1a47f8b99cb694120dd4ba4b72674 |
|
BLAKE2b-256 | ef1afbba1c4310546406b8d5f6af77df09fa46fcdb099a06e13fd0f1b47d9593 |
File details
Details for the file ringity-0.3a6-py3-none-any.whl
.
File metadata
- Download URL: ringity-0.3a6-py3-none-any.whl
- Upload date:
- Size: 51.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 296ca616178b9677deb74c87a547b54dcad1130c9205a7a048efcf62b0d3cfd9 |
|
MD5 | 9ade394ffb98e5d8f3857b6c7c3ff4c3 |
|
BLAKE2b-256 | 52faaf74eb0cc9d26925add127f6cda3bd9d95af6fa4d95053582a7aa891256f |