Moran's Index
Compute Moran's Index for images or adjacency matrices
Installation
You can install moransi via pip:
pip install moransi
To install latest development version :
pip install git+https://github.com/GuignardLab/moransi.git
Usage
You can use this code after installing it the following way:
from moransi import morans_i_image
image = ... # opening an image
kernel = ... # A kernel for the weights of the neighbouring pixels
morans_i_image(image, kernel) # Returns the Moran's index
from moransi import morans_i_adjacency_matrix
adjacency_matrix = ... # an adjacency matrix of size N by N.
# It is either binary or links weights
# adjacency_matrix[i, j] is >0 if there is an edge
# between i and j
metric = ... # An array of size N where metric[i] is the value of node `i`
morans_i_adjacency_matrix(image, metric) # Returns the Moran's index
Contributing
Contributions are very welcome.
License
Distributed under the terms of the MIT license, "moransi" is free and open source software
Issues
If you encounter any problems, please file an issue along with a detailed description.
Metadata
Release files for moransi 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| moransi-1.0.1.tar.gz | 4.9 kB | Without provenance | Details for moransi-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| moransi-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for moransi-1.0.1-py3-none-any.whl |
Total release size: 10.0 kB
Release files / moransi-1.0.1.tar.gz
| Download URL | moransi-1.0.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
715b8168afb64d9c4af9b51d7c50055f224e3a220438b9ce651be8600556fcc6
|
|
BLAKE2b-256 checksum How to use checksums |
ee453aff4bfc3c8aad7edb710b0bc2217556f6ae17886d43545b64e62fe74103
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / moransi-1.0.1-py3-none-any.whl
| Download URL | moransi-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4cd5e5248536a0f50b7ff8cd54171e43c40d3271f3dea7c02c469aea0312a05b
|
|
BLAKE2b-256 checksum How to use checksums |
67a6cbe30d342bfefaee61a63d99e01bb6fe132f56bc2e0a82fd18be04a38aa7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for moransi 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.