Trait sampling::traits::HasRng

source ·
pub trait HasRng<Rng>
where Rng: Rng,
{ // Required methods fn rng(&mut self) -> &mut Rng; fn swap_rng(&mut self, rng: &mut Rng); }
Expand description

Required Methods§

source

fn rng(&mut self) -> &mut Rng

Access RNG

If, for some reason, you want access to the internal random number generator: Here you go

source

fn swap_rng(&mut self, rng: &mut Rng)

If you need to exchange the internal rng
  • swaps internal random number generator with rng

Implementors§

source§

impl<E, R, S, Res, T> HasRng<R> for Metropolis<E, R, S, Res, T>
where R: Rng,

source§

impl<Hist, R, E, S, Res, Energy> HasRng<R> for EntropicSampling<Hist, R, E, S, Res, Energy>
where R: Rng,

source§

impl<Hist, R, E, S, Res, Energy> HasRng<R> for EntropicSamplingAdaptive<Hist, R, E, S, Res, Energy>
where R: Rng,

source§

impl<R> HasRng<R> for CoinFlipSequence<R>
where R: Rng,