chunked-ed
A Python package for chunked Energy Distance computation and permutation-based significance testing for 1D and 2D samples.
Why this package?
This package was developed to make Energy Distance estimation more memory-efficient by computing pairwise distances in blocks rather than all at once.
Features
- Energy Distance for 1D samples
- Energy Distance for 2D samples
- Chunked pairwise computation for reduced memory pressure
- Permutation-based p-value estimation
- Reproducible results with user-defined random seed
Citation
If you use this software, please cite this release:
Akanni, I. A. (2026). chunked-ed (v0.1.1) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.19058025
Installation
Local install
pip install .
Install directly from GitHub
pip install git+https://github.com/REBELABS/chunked-ed.git
Quick example
import numpy as np
from chunked_ed import energy_distance, ed_p_value
a = np.random.normal(0, 1, 100)
b = np.random.normal(0.5, 1, 100)
ed = energy_distance(a, b, block=100)
print(ed)
result = ed_p_value(a, b, block=100, n_perm=200, seed=42)
print(result[0], result[1])
Metadata
Release files for chunked-ed 0.1.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 | |
|---|---|---|---|
| chunked_ed-0.1.1.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chunked_ed-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / chunked_ed-0.1.1.tar.gz
| Download URL | chunked_ed-0.1.1.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0e0954c36f1797ed9b53d005ef71caa3c9d4807f37ab9752da5df22aa199f91
|
|
BLAKE2b-256 checksum How to use checksums |
de71fa17e3e782d345458e457fbca19eebe51eee4579340405da75ac542fe27a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 17, 2026.
Transparency logRelease files / chunked_ed-0.1.1-py3-none-any.whl
| Download URL | chunked_ed-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb4d8f54bdd7f471c5b0d4a2bfa5ac795c6f89205952f5f64e0e32450db781aa
|
|
BLAKE2b-256 checksum How to use checksums |
0c843d1949a2e2641793b01660ee42a4ae8fc40746ecd5feb972989f0415db60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 17, 2026.
Transparency log