Thin data spatiotemporally
Project description
thinst: Thin data spatiotemporally
Description
Thin points spatiotemporally, spatially, or temporally (hence 'thinst', 'thin' + 'ST' for spatiotemporal).
Spatial thinning will remove points so that no two points are within a given spatial threshold of each other.
Temporal thinning will remove points so that no two points are within a given temporal threshold of each other.
Spatiotemporal thinning will remove points so that no two points are within a given spatial threshold and within a
given temporal threshold of each other. Accordingly, two points may overlap spatially, provided that they do not overlap
temporally, and vice versa.
Thinning is set up to retain the maximum number of points.
Thinning (whether it is spatiotemporal, spatial, or temporal) is conducted with the thinst function with the type
of thinning determined by the input parameters.
Simple plots of points are also included within the plots module.
Installation
pip install thinst
Import
For general use, the line below will load the function thinst from the package of the same name.
from thinst import thinst
To access the underlying functions, use:
from thinst.core import *
To access the plotting functions, use:
from thinst.plots import *
Documentation
For more information on the thinst function (or any other function) use one of the following:
?thinst
help(thinst)
Example usage
An exemplar illustrating how to use thinst is available on GitHub at:
https://github.com/JSBigelow/thinst/blob/main/exemplar.ipynb
License
MIT
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file thinst-0.0.8.tar.gz.
File metadata
- Download URL: thinst-0.0.8.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cad73b3130c87301dd41252f13fcf570aa5294d304f66a26c4a52cc070d56d34
|
|
| MD5 |
48f05fff69acdc464f85b7d212af80cd
|
|
| BLAKE2b-256 |
77f6b70cf89dfdd29323a5f7753a8b2e25367a9630683c4a7305dacc61d29a5e
|
File details
Details for the file thinst-0.0.8-py3-none-any.whl.
File metadata
- Download URL: thinst-0.0.8-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac9ffa200dd52085b754c58f28542b0296fc3a46c347a40041cdc679cd1bae54
|
|
| MD5 |
c21341c9d2c7b87d9e439e59a0018cf4
|
|
| BLAKE2b-256 |
7f86b4361032422a83672ea6b76718f6e2151688e56d91832b0f76470551536d
|