ts-vector
ts-vector provides a Vector class that extends the JavaScript/TypeScript array with the most commonly used mathematical and statistical functions.
This library uses EcmaScript 6 array inheritance, so it's not going to work in old browsers!
Node.js 5.0 and the latest Chrome already support most of the Array inheritance features.
Install it from NPM:
npm install ts-vector
, or use a bundled .js file:
ts-vector.js
Check the API Reference
Examples
var v = 100;var xydx = v; var mode = xy;console;var y_cum = y;console; var lessCount = v;console; // vector operations: var v = Vector;var size = v;var result = v;
Licensing
MIT License