Skip to main content

MessagePassingAlgorithm

Trait MessagePassingAlgorithm 

Source
pub trait MessagePassingAlgorithm: Send + Sync {
    // Required methods
    fn run(&self, graph: &FactorGraph) -> Result<HashMap<String, ArrayD<f64>>>;
    fn name(&self) -> &str;
}
Expand description

Trait for message passing algorithms.

Required Methods§

Source

fn run(&self, graph: &FactorGraph) -> Result<HashMap<String, ArrayD<f64>>>

Run the algorithm on a factor graph.

Source

fn name(&self) -> &str

Get algorithm name.

Implementors§