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