Skip to main content

Recreate time-series from averaged data

Project description

Traffic Weaver

Semi-synthetic time series generator based on averaged data.

PyPI version test coverage badge Deploy Sphinx documentation to Pages pages-build-deployment

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).

Signal processing

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

traffic-weaver-1.3.1.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

traffic_weaver-1.3.1-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

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

Hashes for traffic-weaver-1.3.1.tar.gz
Algorithm Hash digest
SHA256 7eb1f2cb7cc212f8a8d948a31778659d46b034a9f5372fff0f5ce01351000266
MD5 2dc519bdb4f43071f6b38c66c4cf8cf2
BLAKE2b-256 f29dee2569e3b8eab69c820805abc8731e42b71c6886da17d86b8dc65aa7a3fe

See more details on using hashes here.

File details

Details for the file traffic_weaver-1.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for traffic_weaver-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b072eeae51ddd474f46064e777d6eef9e632f606416de3098db4548e909da5c9
MD5 b58ffdeed77f47856e1de126adda7bb8
BLAKE2b-256 28ba84907b6101b6b73d4116217f5c1b1835b68d5e5923e9f4431b5e9ea05720

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page