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.1.tar.gz
(13.9 kB
view details)
Built Distribution
File details
Details for the file intervalues-0.0.1.tar.gz
.
File metadata
- Download URL: intervalues-0.0.1.tar.gz
- Upload date:
- Size: 13.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 | f8dd048eac348d8bc4a02046cf7267687b334ab450d4f7f5744638360bfc1811 |
|
MD5 | 26e8e015323a80c5468406374a369973 |
|
BLAKE2b-256 | 70fed24ed0c2a49bd8fdc0ba7df90eb78d3a889b872acdbbcde18d39249015d0 |
File details
Details for the file intervalues-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: intervalues-0.0.1-py3-none-any.whl
- Upload date:
- Size: 11.7 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 | 602516765be48ec7be28e352f8828136d0880cc1625dea7fd2b71e755820e300 |
|
MD5 | 3b7315536ac70a9054e81ed89028cc60 |
|
BLAKE2b-256 | 47599e1c3ba983f4e09112c8baea3b706e6e985a7a0e01749d996d272f9b8a4f |