Skip to main content

Semi-synthetic time-varrying traffic generator based on averaged time series

Project description

Traffic Weaver

Semi-synthetic time-varrying traffic generator based on averaged time series.

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

Acknowledgments and citation

TBD

Table of content

Introduction

Traffic Weaver is a Python package developed to generate a semi-synthetic signal (time series) with finer granularity, based on averaged time series, in a manner that, upon averaging, closely matches the original signal provided. The key components utilized to recreate the signal encompass:

  • oversampling with a given strategy,
  • stretching to match the integral of the original time series,
  • smoothing,
  • repeating,
  • applying trend,
  • adding noise.

The primary motivation behind Traffic Weaver is to furnish semi-synthetic time-varying traffic in telecommunication networks, facilitating the development and validation of traffic prediction models, as well as aiding in the deployment of network optimization algorithms tailored for time-varying traffic.

Below figure shows a general usage example. Based on the provided original averaged time series (a), the signal is $n$-times oversampled with a predefined strategy (b). Next, it is stretched to match the integral of the input time series function (c). Further, it is smoothed with a spline function (d). In order to create weekly semi-synthetic data, the signal is repeated seven times (e), applying a long-term trend consisting of sinusoidal and linear functions (f). Finally, the noise is introduced to the signal, starting from small values and increasing over time (g). To validate the correctness of the applied processing, (h) presents the averaged two periods of the 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.6.tar.gz (22.3 kB view hashes)

Uploaded Source

Built Distribution

traffic_weaver-1.3.6-py3-none-any.whl (23.7 kB view hashes)

Uploaded Python 3

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