Skip to main content

A Python package for calculating eta n, the rank-transform area coverage coefficient of correlation.

Project description

alphashapy

PyPI Docs Tests Changelog License

A Python package for calculating eta_n, the rank-transform area coverage coefficient of correlation. This is the official repository of the paper (link TBD):

"A coefficient of correlation for continuous random variables based on area coverage"

Installation

Install this library using pip:

pip install etacorpy

Usage

import numpy as np
from etacorpy import calc_eta_n
x = np.random.rand(100)
y = np.random.rand(100)
print(f'x and y are independent, eta_n = {calc_eta_n(x,y)}')
y = np.square(x)
print(f'x and y are dependent, eta_n = {calc_eta_n(x,y)}')

Development

To contribute to this library, first checkout the code. Then create a new virtual environment:

cd etacorpy
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

python -m pip install -e '.[test]'

To run the tests:

python -m pytest

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

etacorpy-0.1.2.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

etacorpy-0.1.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file etacorpy-0.1.2.tar.gz.

File metadata

  • Download URL: etacorpy-0.1.2.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for etacorpy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e9b33961642a6973145c9f93649ab3232d4f902ee6d08f07173a6282bfd43536
MD5 fcb24b3c284a9988e89a955b142bc05c
BLAKE2b-256 f078aa3948084fde1c141f2dd4ee1c580f387509813ed91c900df7c8f65ed868

See more details on using hashes here.

Provenance

The following attestation bundles were made for etacorpy-0.1.2.tar.gz:

Publisher: publish.yml on itaipelles/etacorpy

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

File details

Details for the file etacorpy-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: etacorpy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for etacorpy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5d611695783cea6d5c7ccad57ba62ea3e72c43b12b956caa86b986b57bc643fc
MD5 30b174394da1c13692047f34b19e062b
BLAKE2b-256 6e6adc8aaa7cc1ef4f62fbd4b0b95ffa6a6355e160f23322f166a6b81877bd0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for etacorpy-0.1.2-py3-none-any.whl:

Publisher: publish.yml on itaipelles/etacorpy

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