pub struct DefaultRandomizer { /* private fields */ }
Expand description
Default randomizer
This randomizer is used in the nerual network if you don’t provide cusomized one.
Implementations§
Source§impl DefaultRandomizer
impl DefaultRandomizer
pub fn new() -> DefaultRandomizer
Trait Implementations§
Source§impl Default for DefaultRandomizer
impl Default for DefaultRandomizer
Source§impl RandomProvider for DefaultRandomizer
impl RandomProvider for DefaultRandomizer
Source§fn get_number(&mut self) -> f64
fn get_number(&mut self) -> f64
Returns next pseudo-random number from the OS
Auto Trait Implementations§
impl Freeze for DefaultRandomizer
impl RefUnwindSafe for DefaultRandomizer
impl Send for DefaultRandomizer
impl Sync for DefaultRandomizer
impl Unpin for DefaultRandomizer
impl UnwindSafe for DefaultRandomizer
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