Skip to main content

SamplerStats

Trait SamplerStats 

Source
pub trait SamplerStats<M: Math> {
    type Stats: Storable<StatsDims>;
    type StatsOptions: Copy + Send + Sync;

    // Required method
    fn extract_stats(
        &self,
        math: &mut M,
        opt: Self::StatsOptions,
    ) -> Self::Stats;
}

Required Associated Types§

Required Methods§

Source

fn extract_stats(&self, math: &mut M, opt: Self::StatsOptions) -> Self::Stats

Implementors§

Source§

impl<M, R, A, T> SamplerStats<M> for MclmcChain<M, R, A, T>
where M: Math, R: Rng, T: Transformation<M>, A: AdaptStrategy<M, Hamiltonian = TransformedHamiltonian<M, T>>,

Source§

type Stats = MclmcStats<StatsDims, <TransformedHamiltonian<M, T> as SamplerStats<M>>::Stats, <A as SamplerStats<M>>::Stats, <TransformedPoint<M> as SamplerStats<M>>::Stats>

Source§

type StatsOptions = StatOptions<M, A>