#time-series #random #generator #sampled

time_series_generator

Generate various timeseries of given length, some randomly sampled

5 releases

0.3.3 Jul 22, 2023
0.3.2 Jul 22, 2023
0.3.1 Jul 17, 2023
0.3.0 Aug 31, 2021
0.2.0 Feb 23, 2021

#1352 in Algorithms

Download history 5/week @ 2024-07-30 7/week @ 2024-09-24 5/week @ 2024-10-01

89 downloads per month
Used in 2 crates

Custom license

19KB
365 lines

Time Series Generator in Rust 📈

Generate various time series, some randomly sampled. Most commonly used for testing filters or technical indicators See MathisWellmann/go_timeseries_generator for a Go package with similar functionality.

Features:

  • Geometric brownian motion
  • Mackey Glass
  • Lorenz system
  • Gaussian process (Standard Normal)
  • Sine wave function
  • Step function
  • Triangle wave

How to Use

To include this crate in your project, add the following to your Cargo.toml:

[dependencies]
time-series-generator = "0.3.2"

Images:

mackey_glass

lorenz_system

standard_normal

geometric_brownian_motion

sine_wave

step_function

triangle_wave

Tests

To generate the test images presented in this README, run them using:

cargo test

Contributions

If you want to expand the functionality of this crate, feel free to create a Pull Request. Any help is appreciated.

Donations 💰 💸

I you would like to support the development of this crate, feel free to send over a donation:

Monero (XMR) address:

47xMvxNKsCKMt2owkDuN1Bci2KMiqGrAFCQFSLijWLs49ua67222Wu3LZryyopDVPYgYmAnYkSZSz9ZW2buaDwdyKTWGwwb

monero

License

Copyright (C) 2020 <MathisWellmann wellmannmathis@gmail.com>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.

GNU AGPLv3

Dependencies

~1MB
~21K SLoC