#[non_exhaustive]#[repr(u32)]pub enum N01type {
BUGGY_KINDERMAN_RAMAGE = 0,
AHRENS_DIETER = 1,
BOX_MULLER = 2,
USER_NORM = 3,
INVERSION = 4,
KINDERMAN_RAMAGE = 5,
}Expand description
Normal distribution generator type enum from R_ext/Random.h
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BUGGY_KINDERMAN_RAMAGE = 0
Legacy buggy Kinderman-Ramage method.
AHRENS_DIETER = 1
Ahrens-Dieter method.
BOX_MULLER = 2
Box-Muller transform.
USER_NORM = 3
User-supplied normal generator.
INVERSION = 4
Inversion method.
KINDERMAN_RAMAGE = 5
Fixed Kinderman-Ramage method.
Trait Implementations§
impl Copy for N01type
impl Eq for N01type
impl StructuralPartialEq for N01type
Auto Trait Implementations§
impl Freeze for N01type
impl RefUnwindSafe for N01type
impl Send for N01type
impl Sync for N01type
impl Unpin for N01type
impl UnsafeUnpin for N01type
impl UnwindSafe for N01type
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more