Recreate time-series from averaged data
Project description
Traffic Weaver
Semi-synthetic time series generator based on averaged data.
Acknowledgments and citation
TBD
Table of content
Introduction
Traffic Weaver reads averaged time series and creates semi-synthetic signal with finer granularity, that after averaging matches the original provided signal. Following tools are applied to create semi-synthetic signal.
- Oversampling with a given strategy
- Stretching to match the integral of the original time series
- Smoothing
- Repeating
- Trending
- Noising
Below figure shows general usage example. Based on provided original averaged time series (a), signal is n-times oversampled with predefined strategy (b). Next, it is stretched to match integral of the input time series function (c). Further, it is smoothed with spline function (d). In order to create weekly semi-synthetic data, signal is repeated 7 times (e) applying long-term trend consisting of sinusoidal and linear function (f). Finally, the noise is introduced to the signal. starting from small values and increasing over time (g). To validate correctness of applied processing, (h) presents averaged two periods of created signal, showing that they closely match the original signal (except the applied trend).
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file traffic-weaver-1.3.1.tar.gz
.
File metadata
- Download URL: traffic-weaver-1.3.1.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7eb1f2cb7cc212f8a8d948a31778659d46b034a9f5372fff0f5ce01351000266 |
|
MD5 | 2dc519bdb4f43071f6b38c66c4cf8cf2 |
|
BLAKE2b-256 | f29dee2569e3b8eab69c820805abc8731e42b71c6886da17d86b8dc65aa7a3fe |
File details
Details for the file traffic_weaver-1.3.1-py3-none-any.whl
.
File metadata
- Download URL: traffic_weaver-1.3.1-py3-none-any.whl
- Upload date:
- Size: 22.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b072eeae51ddd474f46064e777d6eef9e632f606416de3098db4548e909da5c9 |
|
MD5 | b58ffdeed77f47856e1de126adda7bb8 |
|
BLAKE2b-256 | 28ba84907b6101b6b73d4116217f5c1b1835b68d5e5923e9f4431b5e9ea05720 |