pub struct SamplerParams {
pub burn_in: Option<u64>,
pub thinning: Option<u64>,
pub p_do_nothing: f64,
}Expand description
Parameters for the MCMC sampler.
Fields§
§burn_in: Option<u64>Burn-in steps to reach equilibrium from initial cyclic state.
This is the number of MCMC steps (including do-nothing steps with
probability p_do_nothing). The expected number of actual Jacobson-Matthews
moves is burn_in * (1 - p_do_nothing).
If None, uses n³ as the burn-in value. The mixing time of
Jacobson-Matthews is empirically observed to be O(n³ log n),
though not rigorously proven. Using n³ provides good uniformity
in practice.
thinning: Option<u64>Thinning factor: steps between successive samples.
If None, uses 3×n² for approximate independence. Based on ACF
analysis, this achieves IACT τ ≤ 1.10 and |ACF(1)| ≤ 0.05 for all n.
p_do_nothing: f64Probability of doing nothing (for aperiodicity).
Trait Implementations§
Source§impl Clone for SamplerParams
impl Clone for SamplerParams
Source§fn clone(&self) -> SamplerParams
fn clone(&self) -> SamplerParams
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 SamplerParams
impl Debug for SamplerParams
Auto Trait Implementations§
impl Freeze for SamplerParams
impl RefUnwindSafe for SamplerParams
impl Send for SamplerParams
impl Sync for SamplerParams
impl Unpin for SamplerParams
impl UnsafeUnpin for SamplerParams
impl UnwindSafe for SamplerParams
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