pub struct MetropolisOptions {
pub proposal_scale: Vec<f64>,
pub samples: usize,
pub burn_in: usize,
pub thin: usize,
pub adapt_during_burn_in: bool,
}Expand description
Settings for metropolis_hastings.
Fields§
§proposal_scale: Vec<f64>Standard deviation of the Gaussian proposal per coordinate; empty means 1 for every coordinate (the default, which adaptive burn-in then tunes).
samples: usizeRetained samples.
burn_in: usizeInitial iterations discarded while the chain forgets its starting point.
thin: usizeKeep every thin-th state (1 keeps all), reducing autocorrelation and storage.
adapt_during_burn_in: boolDuring burn-in, rescale the proposal every 100 steps towards an acceptance rate near the optimal 0.234 for random-walk proposals in many dimensions (0.44 in one).
Trait Implementations§
Source§impl Clone for MetropolisOptions
impl Clone for MetropolisOptions
Source§impl Debug for MetropolisOptions
impl Debug for MetropolisOptions
Auto Trait Implementations§
impl Freeze for MetropolisOptions
impl RefUnwindSafe for MetropolisOptions
impl Send for MetropolisOptions
impl Sync for MetropolisOptions
impl Unpin for MetropolisOptions
impl UnsafeUnpin for MetropolisOptions
impl UnwindSafe for MetropolisOptions
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