2014-09-20 10:26:09 +02:00
|
|
|
node-red-node-smooth
|
|
|
|
====================
|
|
|
|
|
2015-10-11 18:47:08 +02:00
|
|
|
A <a href="http://nodered.org" target="_new">Node-RED</a> node that provides
|
|
|
|
several simple smoothing algorithms for incoming data values. These include
|
|
|
|
|
|
|
|
- Minimum
|
|
|
|
- Maximum
|
|
|
|
- Mean
|
|
|
|
- Standard Deviation
|
|
|
|
- High Pass Smoothing
|
|
|
|
- Loww Pass Smoothing
|
2014-09-20 10:26:09 +02:00
|
|
|
|
|
|
|
Install
|
|
|
|
-------
|
|
|
|
|
2016-03-02 14:18:24 +01:00
|
|
|
Run the following command in your Node-RED user directory - typically `~/.node-red`
|
2014-09-20 10:26:09 +02:00
|
|
|
|
|
|
|
npm install node-red-node-smooth
|
|
|
|
|
|
|
|
|
|
|
|
Usage
|
|
|
|
-----
|
|
|
|
|
2015-10-11 18:47:08 +02:00
|
|
|
A simple node to provide various functions across several previous values,
|
|
|
|
including max, min, mean, standard deviation, high and low pass filters.
|
2014-09-20 10:26:09 +02:00
|
|
|
|
2015-10-11 18:47:08 +02:00
|
|
|
Max, Min, Mean and Standard Deviation work over a rolling window, based on a
|
|
|
|
specified number of previous values.
|
2014-09-20 10:26:09 +02:00
|
|
|
|
2015-10-11 18:47:08 +02:00
|
|
|
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.
|
2014-09-20 10:26:09 +02:00
|
|
|
|
2015-10-11 18:47:08 +02:00
|
|
|
**Note:** This node only operates on **numbers**. Anything else will try to be
|
|
|
|
made into a number and rejected if that fails.
|