pub trait Move<P>where
P: Params,{
// Required method
fn propose<'a, O, R>(&self, this: &'a P, other: O, rng: &mut R) -> (P, f64)
where O: FnMut(&mut R) -> &'a P,
R: Rng;
}Expand description
A move defines how new estimates of the model parameters are proposed
Required Methods§
Sourcefn propose<'a, O, R>(&self, this: &'a P, other: O, rng: &mut R) -> (P, f64)
fn propose<'a, O, R>(&self, this: &'a P, other: O, rng: &mut R) -> (P, f64)
Propose new estimates of the model parameters
The proposal is based on the current estimate this and
optionally, randomly sampled estimates of other walkers.
In addition to the new estimate, a correction factor to be added to the difference of logarithmic probabilities can be returned.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.