Skip to content

Fadoli/node-red-contrib-fast-stat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 % Stmts % Branch % Funcs % Lines Uncovered Line #s
All files 96 92.85 100 96
index.js 96 92.85 100 96 45-46