pub struct Frechet { /* private fields */ }Expand description
Frechet Distribution
§Example
let mut frechet = rand_simple::Frechet::new(1192u32);
assert_eq!(format!("{frechet}"), "Fr(Shape parameter, Scale parameter) = Fr(1, 1)");
// Modifying the parameters of the random variable
let shape: f64 = 2_f64;
let scale: f64 = 1.5_f64;
let result: Result<(f64, f64), &str> = frechet.try_set_params(shape, scale);
assert_eq!(format!("{frechet}"), "Fr(Shape parameter, Scale parameter) = Fr(2, 1.5)");Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frechet
impl RefUnwindSafe for Frechet
impl Send for Frechet
impl Sync for Frechet
impl Unpin for Frechet
impl UnwindSafe for Frechet
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