1.0.1 • Published 2 years ago

node-red-contrib-bayesian v1.0.1

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
2 years ago

node-red-contrib-bayesian

A bayesian binary sensor node for Node-RED, similar to the one from Home Assistant.

The necessary values for configuration can be calculated using the spreadsheet found here.

Configuration

PropertyValueDescription
NamestringThe name of the node.
Probability tresholdnumberThe probability at which the node should output true.
PriornumberThe prior probability of the event.
Observationslist of two numbersObservations and their probabilities of occurring given the state of the observation is true/false.

Inputs and outputs

Input: The node expects an array of booleans as long as the observations list. Each boolean should correspond to the state of an observation. Missing values are treated as false, extra values are ignored.

Output: The node outputs either true or false depending on the observation states and probabilities.