Skip to main content

Weighted quantiles, including weighted median, based on numpy

Project description

[![Build Status](https://travis-ci.org/nudomarinero/wquantiles.svg?branch=master)](https://travis-ci.org/nudomarinero/wquantiles) [![DOI](https://zenodo.org/badge/doi/10.5281/zenodo.14952.svg)](http://dx.doi.org/10.5281/zenodo.14952) [![Pypi](https://pypip.in/v/wquantiles/badge.png)](https://pypi.python.org/pypi/wquantiles)

Weighted quantiles with Python, including weighted median. This library is based on numpy, which is the only dependence.

The main methods are quantile and median. The input of quantile is a numpy array (_data_), a numpy array of weights of one dimension and the value of the quantile (between 0 and 1) to compute. The weighting is applied along the last axis. The method median is an alias to _quantile(data, weights, 0.5)_.

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

wquantiles-0.5.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file wquantiles-0.5.tar.gz.

File metadata

  • Download URL: wquantiles-0.5.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wquantiles-0.5.tar.gz
Algorithm Hash digest
SHA256 623848c3c5a0f726ba2d5e24ef5498ab5f0b5f8c3fb8cc24ee566929da993365
MD5 957a9221afe1a8d31bb6906c69246186
BLAKE2b-256 d76cced92ab7a7de1ff4f9ab2761d594e00582aad59b02893e50c243bf0ab684

See more details on using hashes here.

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