node-red-contrib-bayesian 1.0.1

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

npm install node-red-contrib-bayesian

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

Property Value Description
Name string The name of the node.
Probability treshold number The probability at which the node should output true.
Prior number The prior probability of the event.
Observations list of two numbers Observations 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.

Node Info

Version: 1.0.1
Updated 2 years, 11 months ago
License: GPL-3.0-or-later
Rating: 4.0 1

Categories

Actions

Rate:

Downloads

7 in the last week

Nodes

  • bayesian

Keywords

  • node-red

Maintainers