Struct rand_simple::ReflectedWeibull
source · pub struct ReflectedWeibull { /* private fields */ }Expand description
反射ワイブル分布
使用例
let mut reflected_weibull = rand_simple::ReflectedWeibull::new(1192u32);
assert_eq!(format!("{reflected_weibull}"), "RWeibull(Shape parameter, Location Parameter, Scale parameter) = RWeibull(1, 0, 1)");
// 確率変数のパラメータを変更する場合
let shape: f64 = 2f64;
let location: f64 = 3f64;
let scale: f64 = 1.5f64;
let result: Result<(f64, f64, f64), &str> = reflected_weibull.try_set_params(shape, location, scale);
assert_eq!(format!("{reflected_weibull}"), "RWeibull(Shape parameter, Location Parameter, Scale parameter) = RWeibull(2, 3, 1.5)");Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ReflectedWeibull
impl Send for ReflectedWeibull
impl Sync for ReflectedWeibull
impl Unpin for ReflectedWeibull
impl UnwindSafe for ReflectedWeibull
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