[][src]Struct net_ensembles::er_m::ErStepM

pub struct ErStepM { /* fields omitted */ }

Storing the information about which edges were deleted or added

Trait Implementations

impl Debug for ErStepM[src]

impl<T, R> Ensemble<ErStepM, ErStepM> for ErEnsembleM<T, R> where
    T: Node,
    R: Rng
[src]

fn undo_step(&mut self, step: ErStepM) -> ErStepM[src]

  • undo a monte carlo step, return result-state
  • if you want to undo more than one step see undo_steps

fn undo_step_quiet(&mut self, step: ErStepM)[src]

  • undo a monte carlo step, panic on invalid result state
  • for undoing multiple steps see undo_steps_quiet

fn randomize(&mut self)[src]

Randomizes self according to model

fn mc_step(&mut self) -> ErStepM[src]

Monte Carlo step

  • use this to perform a Monte Carlo step
  • for doing multiple mc steps at once, use mc_steps

impl<T, R> EnsembleRng<ErStepM, ErStepM, R> for ErEnsembleM<T, R> where
    T: Node,
    R: Rng
[src]

fn rng(&mut self) -> &mut R[src]

Access RNG

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

fn swap_rng(&mut self, rng: R) -> R[src]

Swap random number generator

  • returns old internal rng

Auto Trait Implementations

impl RefUnwindSafe for ErStepM

impl Send for ErStepM

impl Sync for ErStepM

impl Unpin for ErStepM

impl UnwindSafe for ErStepM

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,