Chunked Energy Distance computation and permutation-based testing for 1D and 2D samples.
Project description
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])
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chunked_ed-0.1.1.tar.gz.
File metadata
- Download URL: chunked_ed-0.1.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0e0954c36f1797ed9b53d005ef71caa3c9d4807f37ab9752da5df22aa199f91
|
|
| MD5 |
a61208344fbdd4c44c864ff76925ca98
|
|
| BLAKE2b-256 |
de71fa17e3e782d345458e457fbca19eebe51eee4579340405da75ac542fe27a
|
Provenance
The following attestation bundles were made for chunked_ed-0.1.1.tar.gz:
Publisher:
publish-to-pypi.yml on REBELABS/chunked-ed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chunked_ed-0.1.1.tar.gz -
Subject digest:
e0e0954c36f1797ed9b53d005ef71caa3c9d4807f37ab9752da5df22aa199f91 - Sigstore transparency entry: 1115105936
- Sigstore integration time:
-
Permalink:
REBELABS/chunked-ed@49abb76abc46c058a5a306784d1fd9762ac6eb78 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/REBELABS
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@49abb76abc46c058a5a306784d1fd9762ac6eb78 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file chunked_ed-0.1.1-py3-none-any.whl.
File metadata
- Download URL: chunked_ed-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb4d8f54bdd7f471c5b0d4a2bfa5ac795c6f89205952f5f64e0e32450db781aa
|
|
| MD5 |
44e761d9a125c534a733a75508a2d9e6
|
|
| BLAKE2b-256 |
0c843d1949a2e2641793b01660ee42a4ae8fc40746ecd5feb972989f0415db60
|
Provenance
The following attestation bundles were made for chunked_ed-0.1.1-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on REBELABS/chunked-ed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
chunked_ed-0.1.1-py3-none-any.whl -
Subject digest:
cb4d8f54bdd7f471c5b0d4a2bfa5ac795c6f89205952f5f64e0e32450db781aa - Sigstore transparency entry: 1115105942
- Sigstore integration time:
-
Permalink:
REBELABS/chunked-ed@49abb76abc46c058a5a306784d1fd9762ac6eb78 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/REBELABS
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@49abb76abc46c058a5a306784d1fd9762ac6eb78 -
Trigger Event:
workflow_dispatch
-
Statement type: