A Python package for calculating eta n, the rank-transform area coverage coefficient of correlation.
Project description
alphashapy
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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9b33961642a6973145c9f93649ab3232d4f902ee6d08f07173a6282bfd43536
|
|
| MD5 |
fcb24b3c284a9988e89a955b142bc05c
|
|
| BLAKE2b-256 |
f078aa3948084fde1c141f2dd4ee1c580f387509813ed91c900df7c8f65ed868
|
Provenance
The following attestation bundles were made for etacorpy-0.1.2.tar.gz:
Publisher:
publish.yml on itaipelles/etacorpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
etacorpy-0.1.2.tar.gz -
Subject digest:
e9b33961642a6973145c9f93649ab3232d4f902ee6d08f07173a6282bfd43536 - Sigstore transparency entry: 155479726
- Sigstore integration time:
-
Permalink:
itaipelles/etacorpy@2b9040a4ed659a3dc34f0576fe59af19b03fa875 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/itaipelles
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2b9040a4ed659a3dc34f0576fe59af19b03fa875 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d611695783cea6d5c7ccad57ba62ea3e72c43b12b956caa86b986b57bc643fc
|
|
| MD5 |
30b174394da1c13692047f34b19e062b
|
|
| BLAKE2b-256 |
6e6adc8aaa7cc1ef4f62fbd4b0b95ffa6a6355e160f23322f166a6b81877bd0e
|
Provenance
The following attestation bundles were made for etacorpy-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on itaipelles/etacorpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
etacorpy-0.1.2-py3-none-any.whl -
Subject digest:
5d611695783cea6d5c7ccad57ba62ea3e72c43b12b956caa86b986b57bc643fc - Sigstore transparency entry: 155479727
- Sigstore integration time:
-
Permalink:
itaipelles/etacorpy@2b9040a4ed659a3dc34f0576fe59af19b03fa875 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/itaipelles
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2b9040a4ed659a3dc34f0576fe59af19b03fa875 -
Trigger Event:
release
-
Statement type: