Skip to main content

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


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

arclia_stats-0.1.0-py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 3

Supported by

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