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