Skip to main content

python-iqm

Interquartile Mean pure-Python module. It contains two classes:

  1. DictIQM

  2. MovingIQM

DictIQM

This class is efficient for datasets in which many numbers are repeated. It should not be used for large datasets with a uniform distribution. The trade-off between accuracy and memory usage can be manged with its round_digits argument.

Usage

from iqm import DictIQM
import sys

diqm = DictIQM(round_digits=-1, tenth_precise=True)
for line in open("source1_numbers_list.txt", "r"):
    diqm("source1", line)

print "# {:12,.2f}    Dict IQM".format(diqm.report("source1"))

MovingIQM

This class sacrifices accuracy for speed and low memory usage.

Usage

from iqm import MovingIQM
import sys

miqm = MovingIQM(1000)
for line in open("source1_numbers_list.txt", "r"):
    miqm("source1", line)

print "# {:12,.2f}    Moving IQM".format(miqm.report("source1"))

License

See LICENSE.txt (MIT License).

Metadata

Release files for python-iqm 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-iqm 0.2.1
File Size Uploaded Provenance
python-iqm-0.2.1.tar.gz 4.4 kB Without provenance Details

Release files / python-iqm-0.2.1.tar.gz

Download URL python-iqm-0.2.1.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a50764f03c22482b61a597195c5fe942d2cbb01ff117e08fca89a4b51131f782
BLAKE2b-256 checksum
How to use checksums
4fbb1e861cb154f88c883b114d827975e76ff53d512ddc2f45bc7a46d4cc4082
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for python-iqm 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page