Package Exports
- majic-ts
- majic-ts/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (majic-ts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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.
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
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('../generateSim');
// Example usage
const generator = new TimeSeriesGenerator(0, 10, 0.1, 2, 0.5, 0.5);
generator.writeToCSV('time_series_data.csv');
3. Parameters
Parameter | Description |
---|---|
startTime |
The start time of the time series. |
endTime |
The end time of the time series. |
timeInterval |
The time interval between data points. |
seasonalityAmplitude |
The amplitude of the seasonality component. |
trendSlope |
The slope of the trend component. |
noiseLevel |
The level of noise to add to the data. |
4. License
ISC
5. Feedback and Contribution
Please open a thread for feedback, question. Feel free to create PR for contribution.
--