Struct rustr::feature::random::RRand [] [src]

pub struct RRand {
    // some fields omitted
}

Methods

impl RRand

fn new() -> RRand

fn norm_rand(&mut self) -> cd

fn unif_rand(&mut self) -> cd

fn exp_rand(&mut self) -> cd

fn rnorm(&mut self, mu: cd, sigma: cd) -> cd

fn runif(&mut self, a: cd, b: cd) -> cd

fn rgamma(&mut self, a: cd, scl: cd) -> cd

fn rbeta(&mut self, a: cd, b: cd) -> cd

fn rlnorm(&mut self, ml: cd, sl: cd) -> cd

fn rchisq(&mut self, df: cd) -> cd

fn rnchisq(&mut self, df: cd, lb: cd) -> cd

fn rf(&mut self, df1: cd, df2: cd) -> cd

fn rt(&mut self, n: cd) -> cd

fn rbinom(&mut self, n: cd, p: cd) -> cd

fn rcauchy(&mut self, lc: cd, sl: cd) -> cd

fn rexp(&mut self, sl: cd) -> cd

fn rgeom(&mut self, p: cd) -> cd

fn rhyper(&mut self, r: cd, b: cd, n: cd) -> cd

fn rnbinom(&mut self, sz: cd, p: cd) -> cd

fn rnbinom_mu(&mut self, sz: cd, mu: cd) -> cd

fn rpois(&mut self, mu: cd) -> cd

fn rweibull(&mut self, sh: cd, sl: cd) -> cd

fn rlogis(&mut self, lc: cd, sl: cd) -> cd

fn rwilcox(&mut self, m: cd, n: cd) -> cd

fn rsignrank(&mut self, n: cd) -> cd

Trait Implementations

impl Default for RRand

fn default() -> Self

impl Rng for RRand

fn next_u32(&mut self) -> u32

fn next_u64(&mut self) -> u64

fn next_f32(&mut self) -> f32

fn next_f64(&mut self) -> f64

fn fill_bytes(&mut self, dest: &mut [u8])

fn gen<T>(&mut self) -> T where T: Rand

fn gen_iter<T>(&'a mut self) -> Generator<'a, T, Self> where T: Rand

fn gen_range<T>(&mut self, low: T, high: T) -> T where T: SampleRange + PartialOrd<T>

fn gen_weighted_bool(&mut self, n: u32) -> bool

fn gen_ascii_chars(&'a mut self) -> AsciiGenerator<'a, Self>

fn choose<T>(&mut self, values: &'a [T]) -> Option<&'a T>

fn shuffle<T>(&mut self, values: &mut [T])

impl Drop for RRand

fn drop(&mut self)