pub enum Distribution {
Uniform(f32, f32),
Bernoulli(f32),
Normal {
mean: f32,
std: f32,
},
}Variants§
Uniform(f32, f32)
Uniform random over [lower, upper].
Bernoulli(f32)
Bernoulli random with probability prob of 1.
Normal
Normal (Gaussian) random with the given mean and std.
Trait Implementations§
Source§impl Clone for Distribution
impl Clone for Distribution
impl Copy for Distribution
Auto Trait Implementations§
impl Freeze for Distribution
impl RefUnwindSafe for Distribution
impl Send for Distribution
impl Sync for Distribution
impl Unpin for Distribution
impl UnsafeUnpin for Distribution
impl UnwindSafe for Distribution
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