Struct rand_simple::ReflectedWeibull
source · pub struct ReflectedWeibull { /* private fields */ }Expand description
反射ワイブル分布
使用例
let mut reflected_weibull = rand_simple::ReflectedWeibull::new(1192u32);
println!("形状母数 γ = 1, 位置母数 μ = 0, 尺度母数 η = 1 の反射ワイブル分布に従う乱数を生成する -> {}", reflected_weibull.sample());
// 確率変数のパラメータを変更する場合
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);
println!("形状母数 γ = {}, 位置母数 μ = {}, 尺度母数 η = {} の反射ワイブル分布に従う乱数を生成する -> {}", shape, location, scale, reflected_weibull.sample());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