Skip to main content

states_box

Function states_box 

Source
pub fn states_box(
    label: &str,
    value: Option<&str>,
    badge: Option<&str>,
    states: &[String],
) -> NodeBox
Expand description

The box a discrete node needs (a Bayesian network’s node, Netica / GeNIe style): node_box’s label, value and badge, then one row per state (its name, a bar and the probability as text), as draw fills it from DrawNode::states. No states: node_box.