pub struct SimConfig {
pub n_sweeps: usize,
pub warmup_sweeps: usize,
pub sweep_mode: SweepMode,
pub cluster_update: Option<ClusterConfig>,
pub pt_interval: Option<usize>,
pub pt_schedule: PtSchedule,
pub overlap_cluster: Option<OverlapClusterConfig>,
pub autocorrelation_max_lag: Option<usize>,
pub autocorrelation_backend: AutocorrelationBackend,
pub sequential: bool,
pub equilibration_diagnostic: bool,
pub conditional_link_overlap: bool,
}Fields§
§n_sweeps: usize§warmup_sweeps: usize§sweep_mode: SweepMode§cluster_update: Option<ClusterConfig>§pt_interval: Option<usize>§pt_schedule: PtSchedule§overlap_cluster: Option<OverlapClusterConfig>§autocorrelation_max_lag: Option<usize>§autocorrelation_backend: AutocorrelationBackend§sequential: bool§equilibration_diagnostic: bool§conditional_link_overlap: boolAccumulate the link overlap and its square conditioned on the overlap bin
(ql_at_q_sum, ql2_at_q_sum), also per disorder sample. They are two of
the three histogram-sized overlap arrays, so turning this off saves two
thirds of that memory.
Implementations§
Source§impl SimConfig
impl SimConfig
Sourcepub fn validate(&self) -> Result<(), String>
pub fn validate(&self) -> Result<(), String>
Checks the options against each other; the message names the offending one.
Sourcepub fn n_measurement_sweeps(&self) -> usize
pub fn n_measurement_sweeps(&self) -> usize
Sweeps left for measurement after warmup.
Sourcepub fn autocorrelation_lag(&self) -> Option<usize>
pub fn autocorrelation_lag(&self) -> Option<usize>
Largest autocorrelation lag that is estimated: the requested lag, capped at a quarter of the measured sweeps and at least 1.
Trait Implementations§
Auto Trait Implementations§
impl Forget for SimConfig
impl Freeze for SimConfig
impl RefUnwindSafe for SimConfig
impl Send for SimConfig
impl Sync for SimConfig
impl Unpin for SimConfig
impl UnsafeUnpin for SimConfig
impl UnwindSafe for SimConfig
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