node-red-contrib-bayesian

1.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i node-red-contrib-bayesian

Weekly Downloads

0

Version

1.0.1

License

GPL-3.0-or-later

Unpacked Size

49.6 kB

Total Files

8

Last publish

Collaborators

  • mixu_78