pub struct Rayleigh { /* private fields */ }Expand description
Rayleigh distribution.
§Examples
let mut rayleigh = rand_simple::Rayleigh::new(1192u32);
assert_eq!(format!("{rayleigh}"), "Rayleigh(Scale parameter) = Rayleigh(1)");
// To change the parameter of the random variable
let scale: f64 = 1.5f64;
let result: Result<f64, &str> = rayleigh.try_set_params(scale);
assert_eq!(format!("{rayleigh}"), "Rayleigh(Scale parameter) = Rayleigh(1.5)");Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rayleigh
impl RefUnwindSafe for Rayleigh
impl Send for Rayleigh
impl Sync for Rayleigh
impl Unpin for Rayleigh
impl UnwindSafe for Rayleigh
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