Efficient combining of intervals of numbers.
Project description
intervalues
Efficient combining of intervals of numbers while keeping track of how frequent numbers within those intervals are featured.
Motivation
This package will be useful in the following cases:
- If you have too many intervals and can't easily see which value is featured the most across them.
- If you have a large number of integers to keep track of and you need to do this more memory efficient than a list
- If you have a list of continuous intervals that need to be combined
Features
Contains the following classes:
- IntervalSet (optimized towards combining)
- IntervalList (unstructured collection - faster to create)
- IntervalCounter (optimized towards tracking counts)
Both integer and float intervals will be supported.
Extended feature list
S/L/C indicate whether this feature is supported by Sets, Lists or Counters. F/I indicate Float or Integer versions of these.
- L/C: Sampling from a constructed List or Counter, and other statistical uses (CDF/PDF)
- C: Weight/values for intervals? Could be attribute of "UnitInterval"
- S/L/C: Complex intervals (which means to include 2D logic; this might extend to higher dimensions)
- S/L/C: Transforming individual or combined intervals with monotonic functions
- F: support for open and closed intervals (this distinction is currently ignored for floats)
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
intervalues-0.0.2.tar.gz
(14.9 kB
view details)
Built Distribution
File details
Details for the file intervalues-0.0.2.tar.gz
.
File metadata
- Download URL: intervalues-0.0.2.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 PyPy/7.3.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f566ac639782fe900ca51235c2e8ae88e58f5b10d81befa0f43f151bac27e0ac |
|
MD5 | 22c4cd1e6631ff2d88342a45d132da67 |
|
BLAKE2b-256 | 62ba2044c8d5051026e8bfe5e11e133f29cbb3a076ca21734c0ce96797966d03 |
File details
Details for the file intervalues-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: intervalues-0.0.2-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 PyPy/7.3.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa1251055d36b843b6947852c99d6961d6177fb1bd19c97cbb247ce7341b2bba |
|
MD5 | bf6bbdc447c2dbf68888a6862cae5c9f |
|
BLAKE2b-256 | 7f6c71fb4186976df13ce961a8c65b0909026c6fdde4a70381a4255cef0491d6 |