1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
node-red-nodes/function/smooth
2015-02-05 13:52:20 +00:00
..
icons Move Smooth node to function folder to better reflect it's category. 2014-09-21 11:14:57 +01:00
17-smooth.html Update Smooth node to our more normal html layout.... 2014-10-02 19:35:07 +01:00
17-smooth.js Misc tidy ups of jsHint "issues" for some node-red-nodes 2015-02-05 13:52:20 +00:00
LICENSE Move Smooth node to function folder to better reflect it's category. 2014-09-21 11:14:57 +01:00
package.json Update Smooth node to our more normal html layout.... 2014-10-02 19:35:07 +01:00
README.md Move Smooth node to function folder to better reflect it's category. 2014-09-21 11:14:57 +01:00

node-red-node-smooth

A Node-RED node that provides several simple smoothing algorithms for incoming data values.

Install

Run the following command in the root directory of your Node-RED install

npm install node-red-node-smooth

Usage

A simple node to provide various functions across several previous values, including max, min, mean, high and low pass filters.

Max, Min and Mean work over a specified number of previous values.

The High and Low pass filters use a smoothing factor. The higher the number the more the smoothing. E.g. a value of 10 is similar to an α of 0.1. It is analogous to an RC time constant - but there is no time component to this as the code is based on events arriving.

Note: This only operates on numbers. Anything else will try to be made into a number and rejected if that fails.