@fadoli/node-red-fast-running-stats

2.0.0 • Public • Published

node-red fast-running-stats

This is a node-red node for computing running (or rolling) statistics for each number in the msg.payload fields.

Requires node 14 or more recent.

Can be found on :

Performance and expected outputs

The purpose of this node is to allow high-performance compute of running/rolling statistics inside Node-Red.

Usage examples :

INPUT

{
    "payload": {
        "fieldA": 1,
        "fieldB": "string"
    }
}

OUTPUT

{
    "payload": {
        "fieldA": {"n":1,"min":1,"max":1,"sum":1,"mean":1,"variance":0,"standard_deviation":0},
        "fieldB": "string",
    }
}

Coverage

File Line % Branch % Funcs % Uncovered Lines
src\index.js 96.67 92.86 100.00 55-56

Package Sidebar

Install

npm i @fadoli/node-red-fast-running-stats

Weekly Downloads

3

Version

2.0.0

License

MIT

Unpacked Size

7.45 kB

Total Files

5

Last publish

Collaborators

  • fadoli