pub enum Distribution {
Linear,
Gaussian,
GaussianRange,
GaussianInverse,
GaussianRangeInverse,
}Expand description
The distribution to use when generating random numbers
Variants§
Linear
Linear distribution; all numbers are equally likely.
Gaussian
Gaussian distribution; uses a mean and standard deviation to generate numbers.
GaussianRange
Gaussian range distribution; uses the given min and max values to derive a mean and standard deviation for generating numbers.
GaussianInverse
Gaussian inverse distribution; uses a mean and standard deviation to generate numbers.
GaussianRangeInverse
Gaussian inverse range distribution; uses the given min and max values to derive a mean and standard deviation for generating numbers.
Trait Implementations§
Source§impl Clone for Distribution
impl Clone for Distribution
Source§fn clone(&self) -> Distribution
fn clone(&self) -> Distribution
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Distribution
impl Debug 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 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