pub struct ChainTracker { /* private fields */ }Expand description
Tracks statistics for a single MCMC chain.
§Fields
n_params: Number of parameters in the chain.n: Number of steps taken.p_accept: Acceptance probability.mean: Mean of the parameters.mean_sq: Mean of the squared parameters.last_state: Last state of the chain.accept_queue: Queue tracking acceptance history.
Implementations§
Source§impl ChainTracker
impl ChainTracker
Sourcepub fn stats(&self) -> ChainStats
pub fn stats(&self) -> ChainStats
Retrieves the current statistics of the chain.
§Returns
A ChainStats struct containing the current statistics.
Trait Implementations§
Source§impl Clone for ChainTracker
impl Clone for ChainTracker
Source§fn clone(&self) -> ChainTracker
fn clone(&self) -> ChainTracker
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 ChainTracker
impl Debug for ChainTracker
Source§impl PartialEq for ChainTracker
impl PartialEq for ChainTracker
impl StructuralPartialEq for ChainTracker
Auto Trait Implementations§
impl Freeze for ChainTracker
impl RefUnwindSafe for ChainTracker
impl Send for ChainTracker
impl Sync for ChainTracker
impl Unpin for ChainTracker
impl UnwindSafe for ChainTracker
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