Trait net_ensembles::sampling::traits::SimpleSample[][src]

pub trait SimpleSample {
    fn randomize(&mut self);

    fn simple_sample<F>(&mut self, times: usize, f: F)
    where
        F: FnMut(&Self)
, { ... }
fn simple_sample_vec<F, G>(&mut self, times: usize, f: F) -> Vec<G, Global>
    where
        F: FnMut(&Self) -> G
, { ... } }
Expand description

For easy sampling of your ensemble

Required methods

Randomizes self according to model

Provided methods

do the following times times:
  1. f(self)
  2. self.randomize()

Implementors