Basic statistical functions
Project description
arclia-stats
Basic statistical functions.
Installation
pip install arclia-stats
Usage
calculate_weighted_quantile
When q
is a scalar
from arclia.stats import calculate_weighted_quantile
result = calculate_weighted_quantile(
values = [1, 3, 0, 2, 4],
weights = [1, 3, 1, 2, 3],
q = 0.5,
)
# Prints: 3
print(repr(result))
When q
is an ArrayLike
from arclia.stats import calculate_weighted_quantile
result = calculate_weighted_quantile(
values = [1, 3, 0, 2, 4],
weights = [1, 3, 1, 2, 3],
q = [0.0, 0.5, 1.0],
)
# Prints: array([0, 3, 4])
print(repr(result))
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file arclia_stats-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: arclia_stats-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
db7c930c1c0028c53814e9d501e06f6b893dc96be24616abe3a197490c6a023f
|
|
MD5 |
81ecb450860e692cc49bee5e27cd8853
|
|
BLAKE2b-256 |
910dae94a3c5a877ac4d91944105a55ec82adfbdf57d367e484e397cc7886eb0
|