[−][src]Struct opencv::core::RNG_MT19937
Mersenne Twister random number generator
Inspired by http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/CODES/mt19937ar.c @todo document
Implementations
impl RNG_MT19937
[src]
pub fn as_raw_RNG_MT19937(&self) -> *const c_void
[src]
pub fn as_raw_mut_RNG_MT19937(&mut self) -> *mut c_void
[src]
impl RNG_MT19937
[src]
pub fn default() -> Result<RNG_MT19937>
[src]
pub fn new(s: u32) -> Result<RNG_MT19937>
[src]
Trait Implementations
impl Boxed for RNG_MT19937
[src]
unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
fn into_raw(self) -> *mut c_void
[src]
fn as_raw(&self) -> *const c_void
[src]
fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for RNG_MT19937
[src]
impl RNG_MT19937Trait for RNG_MT19937
[src]
fn as_raw_RNG_MT19937(&self) -> *const c_void
[src]
fn as_raw_mut_RNG_MT19937(&mut self) -> *mut c_void
[src]
fn seed(&mut self, s: u32) -> Result<()>
[src]
fn next(&mut self) -> Result<u32>
[src]
fn to_i32(&mut self) -> Result<i32>
[src]
fn to_u32(&mut self) -> Result<u32>
[src]
fn to_f32(&mut self) -> Result<f32>
[src]
fn to_f64(&mut self) -> Result<f64>
[src]
fn uniform(&mut self, a: i32, b: i32) -> Result<i32>
[src]
fn uniform_1(&mut self, a: f32, b: f32) -> Result<f32>
[src]
fn uniform_2(&mut self, a: f64, b: f64) -> Result<f64>
[src]
impl Send for RNG_MT19937
[src]
Auto Trait Implementations
impl RefUnwindSafe for RNG_MT19937
impl !Sync for RNG_MT19937
impl Unpin for RNG_MT19937
impl UnwindSafe for RNG_MT19937
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,