Struct rand_simple::Weibull
source · pub struct Weibull { /* private fields */ }Expand description
ワイブル分布
使用例
let mut weibull = rand_simple::Weibull::new(1192u32);
println!("形状母数 γ = 1, 尺度母数 η = 1 の標準ワイブル分布に従う乱数を生成する -> {}", weibull.sample());
// 確率変数のパラメータを変更する場合
let shape: f64 = 2f64;
let scale: f64 = 1.5f64;
let result: Result<(f64, f64), &str> = weibull.try_set_params(shape, scale);
println!("形状母数 γ = {}, 尺度母数 η = {} の標準ワイブル分布に従う乱数を生成する -> {}", shape, scale, weibull.sample());Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Weibull
impl Send for Weibull
impl Sync for Weibull
impl Unpin for Weibull
impl UnwindSafe for Weibull
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