1.2.1 • Published 2 months ago

majic-ts v1.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

Majic Time Series Generator (majic-ts)

majic time-series-generator is a Node.js library designed to produce sample time series data that closely resembles real-world data, incorporating elements like seasonality, trend, and noise. It aims to go beyond simple random number generation to create more meaningful datasets.

Sample output

Use cases for this library include:

Creating realistic sample data for testing and development of time series analysis algorithms. Generating synthetic data for training machine learning models that deal with time series data. Simulating time series data for educational purposes or data visualization demonstrations.

Table of content

  1. Installation
  2. usage
  3. Parameters
  4. License
  5. Feedback and Contribution

1. Installation

Via npm (nodejs)

majic time-series-generator is available via npm. You can install using npm

# with npm
$ npm i majic-ts

2. usage

const { TimeSeriesGenerator } = require('majic-ts/src/generateSim');

// Example usage
const generator = new TimeSeriesGenerator(0, 10, 0.1, 2, 0.5, 0.5);
generator.writeToCSV('time_series_data.csv');

3. Parameters

ParameterDescription
startTimeThe start time of the time series.
endTimeThe end time of the time series.
timeIntervalThe time interval between data points.
seasonalityAmplitudeThe amplitude of the seasonality component.
trendSlopeThe slope of the trend component.
noiseLevelThe level of noise to add to the data.

4. License

MIT


5. Feedback and Contribution

Please open a thread for feedback, question. Feel free to create PR for contribution.

--

1.2.0

2 months ago

1.1.7

2 months ago

1.1.6

2 months ago

1.1.5

2 months ago

1.2.1

2 months ago

1.1.4

2 months ago

1.1.3

2 months ago

1.1.1

2 months ago

1.1.2

2 months ago

1.1.0

2 months ago

1.0.0

2 months ago