Subvector
A simple data structure to manage multiple linear vectors at arbitrary lengths
This package provides a simple data structure to create any vector sequence at any period (ie for moving average computation). Allows developers to create a single data structure to capture and return sequences at any period length.
List of features
- Usage of a single data structure that can be used to derive vector sequences at any arbitrary length
- Simple factory function instantiation
- Simple add/get api for managing vector
Code Demo
const Vector = ; const v = ;for let count=1; count<=5000; count++ const randomNum = Math; v; console;// [89, 90, 13]console;// [67, 78, 89, 90, 13]console;// [12, 23, 34, 45, 56, 67, 78, 89, 90, 13]console;// 5000console;// 13v;// ...// 67 4996// 78 4997// 89 4998// 90 4999// 13 5000
Download & Installation
$ npm i subvector
Contributing
Send me PRs. I like contribution.
Authors or Acknowledgments
- Matthew Herron
License
This project is licensed under the ISC License