pub trait EntropicEnsemble<E>: Entropic {
    // Required methods
    fn ensemble(&self) -> &E;
    unsafe fn ensemble_mut(&mut self) -> &mut E;
}
Expand description

Required Methods§

source

fn ensemble(&self) -> &E

return reference to current state of ensemble

source

unsafe fn ensemble_mut(&mut self) -> &mut E

returns mutable reference to ensemble
Safety
  • If, whatever you do with the ensemble, changes the energy of the current state, you cannot trust the results of entropic sampling anymore
  • use with care

Object Safety§

This trait is not object safe.

Implementors§

source§

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

source§

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