pub struct McmcConfig {
pub n_samples: usize,
pub n_warmup: usize,
pub thin: usize,
pub seed: u64,
pub target_acceptance: f64,
}Expand description
Configuration shared by all MCMC samplers.
Fields§
§n_samples: usizeNumber of post-warmup samples to collect (default: 1000).
n_warmup: usizeNumber of burn-in steps to discard (default: 500).
thin: usizeThinning factor: keep every thin-th sample (default: 1).
seed: u64RNG seed for reproducibility (default: 42).
target_acceptance: f64Target acceptance rate for adaptive step-size tuning (default: 0.234 for MH).
Implementations§
Source§impl McmcConfig
impl McmcConfig
Trait Implementations§
Source§impl Clone for McmcConfig
impl Clone for McmcConfig
Source§fn clone(&self) -> McmcConfig
fn clone(&self) -> McmcConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for McmcConfig
impl Debug for McmcConfig
Auto Trait Implementations§
impl Freeze for McmcConfig
impl RefUnwindSafe for McmcConfig
impl Send for McmcConfig
impl Sync for McmcConfig
impl Unpin for McmcConfig
impl UnsafeUnpin for McmcConfig
impl UnwindSafe for McmcConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more