Napolean Paced Mischeviously
Miss any of our Open RFC calls?Watch the recordings here! »

math-foreach

1.0.1 • Public • Published

math-foreach

Simple Array Math Library

npm version dependencies Build Status lifetimeDownloadCount Pledge To Arupex!

A word of Caution, at Arupex we take AGILE seriously, while we try our best to semver, that also means 2 things happen

  • releases with partial code ( if its not tested its not prime time, the api may be unstable, if it does change we will do a major version bump )
  • lots of Major version bumps ( we dont want you broken, because of us )

Install

npm install math-foreach --save

Usage

let ArrayMath = require('math-foreach').ArrayMath;
chainObj = new ArrayMath(array, optionalAccessorStr);

let normalizedMaxOf1stDerivative = chainObj
                                    .derivative1d(1)
                                    .normalize()
                                    .max();

Docs

( highly recommend reading unit tests in test folder ) - Chain Tests - Opperation Tests - Timeseries Tests


Ready


In Progress ( Use with Some Caution Equivalent to Nightly )


TBC (to be coded, future release)

Data Styles both work thanks to ( deep-setter deep-value modules )

var dataStyle1 = [{"value": 0},{"value": 1},{"value": 2}]
                 
var dataStyle2 = [0, 1, 2]

Install

npm i math-foreach

DownloadsWeekly Downloads

3

Version

1.0.1

License

UNLICENSED

Last publish

Collaborators

  • avatar