Trait opencv::core::prelude::RNGTraitConst [−][src]
pub trait RNGTraitConst {
fn as_raw_RNG(&self) -> *const c_void;
fn state(&self) -> u64 { ... }
fn equals(&self, other: &RNG) -> Result<bool> { ... }
}
Expand description
Random Number Generator
Random number generator. It encapsulates the state (currently, a 64-bit integer) and has methods to return scalar random values and to fill arrays with random values. Currently it supports uniform and Gaussian (normal) distributions. The generator uses Multiply-With-Carry algorithm, introduced by G. Marsaglia ( http://en.wikipedia.org/wiki/Multiply-with-carry ). Gaussian-distribution random numbers are generated using the Ziggurat algorithm ( http://en.wikipedia.org/wiki/Ziggurat_algorithm ), introduced by G. Marsaglia and W. W. Tsang.