View Source BrowserForge.BayesianNode (BrowserForge v0.1.0)
Implementation of a single node in a bayesian network allowing sampling from its conditional distribution.
Summary
Functions
Extracts unconditional probabilities of node values given the values of the parent nodes.
Gets the name of the node.
Gets the parent names of the node.
Gets the possible values of the node.
Randomly samples from the conditional distribution of this node given values of parents.
Randomly samples from the conditional distribution of this node given restrictions on the possible values and the values of the parents.
Randomly samples from the given values using the given probabilities.
Types
@type t() :: %BrowserForge.BayesianNode{node_definition: map()}
Functions
Extracts unconditional probabilities of node values given the values of the parent nodes.
Gets the name of the node.
Gets the parent names of the node.
Gets the possible values of the node.
Randomly samples from the conditional distribution of this node given values of parents.
Randomly samples from the conditional distribution of this node given restrictions on the possible values and the values of the parents.
Randomly samples from the given values using the given probabilities.