pub struct RewlWalker<R, Hist, Energy, S, Res> { /* private fields */ }
Expand description
Implementations§
Source§impl<R, Hist, Energy, S, Res> RewlWalker<R, Hist, Energy, S, Res>
impl<R, Hist, Energy, S, Res> RewlWalker<R, Hist, Energy, S, Res>
Sourcepub fn id(&self) -> usize
pub fn id(&self) -> usize
§Returns id of walker
- important for mapping the ensemble to the walker
Sourcepub fn wang_landau_mode(&self) -> WangLandauMode
pub fn wang_landau_mode(&self) -> WangLandauMode
§Which mode is this walker currently in?
see WangLandauMode
Sourcepub fn energy_copy(&self) -> Energywhere
Energy: Copy,
pub fn energy_copy(&self) -> Energywhere
Energy: Copy,
Returns current energy
Sourcepub fn energy_clone(&self) -> Energywhere
Energy: Clone,
pub fn energy_clone(&self) -> Energywhere
Energy: Clone,
Returns current energy
Sourcepub fn sweep_size(&self) -> NonZeroUsize
pub fn sweep_size(&self) -> NonZeroUsize
§how many steps per sweep
Sourcepub fn sweep_size_change(&mut self, sweep_size: NonZeroUsize)
pub fn sweep_size_change(&mut self, sweep_size: NonZeroUsize)
§change how many steps per sweep are performed
Sourcepub fn step_size_change(&mut self, step_size: usize)
pub fn step_size_change(&mut self, step_size: usize)
§Change step sitze for markov steps
Sourcepub fn step_count(&self) -> u64
pub fn step_count(&self) -> u64
§How many steps were performed until now?
Sourcepub fn replica_exchanges(&self) -> usize
pub fn replica_exchanges(&self) -> usize
§How many successful replica exchanges were performed until now?
Sourcepub fn proposed_replica_exchanges(&self) -> u64
pub fn proposed_replica_exchanges(&self) -> u64
§How many replica exchanges were proposed until now?
Sourcepub fn replica_exchange_frac(&self) -> f64
pub fn replica_exchange_frac(&self) -> f64
fraction of how many replica exchanges were accepted and how many were proposed
Sourcepub fn rejected_markov_steps(&self) -> u64
pub fn rejected_markov_steps(&self) -> u64
§How many markov steps were rejected until now
Sourcepub fn acceptance_rate_markov(&self) -> f64
pub fn acceptance_rate_markov(&self) -> f64
§rate/fraction of acceptance
Sourcepub fn log_density(&self) -> &[f64]
pub fn log_density(&self) -> &[f64]
Current non normalized estimate of the natural logarithm of the probability density function
Source§impl<R, Hist, Energy, S, Res> RewlWalker<R, Hist, Energy, S, Res>
impl<R, Hist, Energy, S, Res> RewlWalker<R, Hist, Energy, S, Res>
Sourcepub fn log10_density(&self) -> Vec<f64>
pub fn log10_density(&self) -> Vec<f64>
§Current estimate of log10 of probability density
- normalized (sum over non log values is 1 (within numerical precision))
Trait Implementations§
Source§impl<R: Clone, Hist: Clone, Energy: Clone, S: Clone, Res: Clone> Clone for RewlWalker<R, Hist, Energy, S, Res>
impl<R: Clone, Hist: Clone, Energy: Clone, S: Clone, Res: Clone> Clone for RewlWalker<R, Hist, Energy, S, Res>
Source§fn clone(&self) -> RewlWalker<R, Hist, Energy, S, Res>
fn clone(&self) -> RewlWalker<R, Hist, Energy, S, Res>
Returns a copy 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<R: Debug, Hist: Debug, Energy: Debug, S: Debug, Res: Debug> Debug for RewlWalker<R, Hist, Energy, S, Res>
impl<R: Debug, Hist: Debug, Energy: Debug, S: Debug, Res: Debug> Debug for RewlWalker<R, Hist, Energy, S, Res>
Source§impl<'de, R, Hist, Energy, S, Res> Deserialize<'de> for RewlWalker<R, Hist, Energy, S, Res>
impl<'de, R, Hist, Energy, S, Res> Deserialize<'de> for RewlWalker<R, Hist, Energy, S, Res>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<R, Hist, Energy, S, Res> From<RewlWalker<R, Hist, Energy, S, Res>> for ReesWalker<R, Hist, Energy, S, Res>where
Hist: Histogram,
impl<R, Hist, Energy, S, Res> From<RewlWalker<R, Hist, Energy, S, Res>> for ReesWalker<R, Hist, Energy, S, Res>where
Hist: Histogram,
Source§fn from(rewl_walker: RewlWalker<R, Hist, Energy, S, Res>) -> Self
fn from(rewl_walker: RewlWalker<R, Hist, Energy, S, Res>) -> Self
Converts to this type from the input type.
Source§impl<R, Hist, Energy, S, Res> Serialize for RewlWalker<R, Hist, Energy, S, Res>
impl<R, Hist, Energy, S, Res> Serialize for RewlWalker<R, Hist, Energy, S, Res>
Auto Trait Implementations§
impl<R, Hist, Energy, S, Res> Freeze for RewlWalker<R, Hist, Energy, S, Res>
impl<R, Hist, Energy, S, Res> RefUnwindSafe for RewlWalker<R, Hist, Energy, S, Res>where
R: RefUnwindSafe,
Hist: RefUnwindSafe,
Energy: RefUnwindSafe,
Res: RefUnwindSafe,
S: RefUnwindSafe,
impl<R, Hist, Energy, S, Res> Send for RewlWalker<R, Hist, Energy, S, Res>
impl<R, Hist, Energy, S, Res> Sync for RewlWalker<R, Hist, Energy, S, Res>
impl<R, Hist, Energy, S, Res> Unpin for RewlWalker<R, Hist, Energy, S, Res>
impl<R, Hist, Energy, S, Res> UnwindSafe for RewlWalker<R, Hist, Energy, S, Res>
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