pub struct LoopyBpConfig {
pub max_iter: usize,
pub tol: f64,
pub damping: f64,
}Expand description
Configuration for loopy belief propagation.
Fields§
§max_iter: usizeMaximum number of synchronous message-update sweeps.
tol: f64Convergence threshold on the largest absolute log-message change.
damping: f64Update step in (0, 1]: new = (1−damp)·old + damp·update. A value of
1.0 is undamped (standard) BP; smaller values damp the updates.
Trait Implementations§
Source§impl Clone for LoopyBpConfig
impl Clone for LoopyBpConfig
Source§fn clone(&self) -> LoopyBpConfig
fn clone(&self) -> LoopyBpConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LoopyBpConfig
Source§impl Debug for LoopyBpConfig
impl Debug for LoopyBpConfig
Auto Trait Implementations§
impl Freeze for LoopyBpConfig
impl RefUnwindSafe for LoopyBpConfig
impl Send for LoopyBpConfig
impl Sync for LoopyBpConfig
impl Unpin for LoopyBpConfig
impl UnsafeUnpin for LoopyBpConfig
impl UnwindSafe for LoopyBpConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more