Skip to main content

Chunked Energy Distance computation and permutation-based testing for 1D and 2D samples.

Project description

DOI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chunked_ed-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chunked_ed-0.1.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

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

Hashes for chunked_ed-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e0e0954c36f1797ed9b53d005ef71caa3c9d4807f37ab9752da5df22aa199f91
MD5 a61208344fbdd4c44c864ff76925ca98
BLAKE2b-256 de71fa17e3e782d345458e457fbca19eebe51eee4579340405da75ac542fe27a

See more details on using hashes here.

Provenance

The following attestation bundles were made for chunked_ed-0.1.1.tar.gz:

Publisher: publish-to-pypi.yml on REBELABS/chunked-ed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for chunked_ed-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cb4d8f54bdd7f471c5b0d4a2bfa5ac795c6f89205952f5f64e0e32450db781aa
MD5 44e761d9a125c534a733a75508a2d9e6
BLAKE2b-256 0c843d1949a2e2641793b01660ee42a4ae8fc40746ecd5feb972989f0415db60

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page