pub struct IntervalSimStats {
pub sim_progress: SimProgress,
pub interval_sim_type: SimulationType,
pub rejected_steps: u64,
pub accepted_steps: u64,
pub replica_exchanges: Option<u64>,
pub proposed_replica_exchanges: Option<u64>,
pub merged_over_walkers: NonZeroUsize,
}
Expand description
Statistics of one interval, used to gauge how well the simulation works etc.
Fields§
§sim_progress: SimProgress
the progress of the Interval
interval_sim_type: SimulationType
Which type of simulation did the interval come from
rejected_steps: u64
How many steps were rejected in total in the interval
accepted_steps: u64
How many steps were accepted in total in the interval
replica_exchanges: Option<u64>
How many replica exchanges were performed? None for Simulations that don’t do replica exchanges
proposed_replica_exchanges: Option<u64>
How many replica exchanges were proposed? None for simulations that do not perform replica exchanges
merged_over_walkers: NonZeroUsize
The number of walkers used to generate this sim. In Replica exchange sims you can have more than one walker per interval, which is where this comes from
Implementations§
Source§impl IntervalSimStats
impl IntervalSimStats
Sourcepub fn write<W: Write>(&self, writer: W) -> Result<()>
pub fn write<W: Write>(&self, writer: W) -> Result<()>
§Write Stats to file
Use this function to output the simulation statistics of an interval to a file.
Every line will be preceded by an ‘#’ to mark it as comment
§Contained information
- Simulation type
- Progress
- How many walkers were used for this interval?
- Rejection/Acceptance rate
- If applicable: Number of replica exchanges and acceptance rate of replica exchanges
Trait Implementations§
Source§impl Clone for IntervalSimStats
impl Clone for IntervalSimStats
Source§fn clone(&self) -> IntervalSimStats
fn clone(&self) -> IntervalSimStats
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 Debug for IntervalSimStats
impl Debug for IntervalSimStats
Source§impl<'de> Deserialize<'de> for IntervalSimStats
impl<'de> Deserialize<'de> for IntervalSimStats
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
Auto Trait Implementations§
impl Freeze for IntervalSimStats
impl RefUnwindSafe for IntervalSimStats
impl Send for IntervalSimStats
impl Sync for IntervalSimStats
impl Unpin for IntervalSimStats
impl UnwindSafe for IntervalSimStats
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