Struct rand_distr::FisherF
source · pub struct FisherF<F>{ /* private fields */ }
Expand description
The Fisher F distribution F(m, n)
.
This distribution is equivalent to the ratio of two normalised
chi-squared distributions, that is, F(m,n) = (χ²(m)/m) / (χ²(n)/n)
.
Example
use rand_distr::{FisherF, Distribution};
let f = FisherF::new(2.0, 32.0).unwrap();
let v = f.sample(&mut rand::thread_rng());
println!("{} is from an F(2, 32) distribution", v)
Implementations§
Trait Implementations§
source§impl<F> Clone for FisherF<F>where
F: Float + Clone,
StandardNormal: Distribution<F>,
Exp1: Distribution<F>,
Open01: Distribution<F>,
impl<F> Clone for FisherF<F>where
F: Float + Clone,
StandardNormal: Distribution<F>,
Exp1: Distribution<F>,
Open01: Distribution<F>,
source§impl<F> Debug for FisherF<F>where
F: Float + Debug,
StandardNormal: Distribution<F>,
Exp1: Distribution<F>,
Open01: Distribution<F>,
impl<F> Debug for FisherF<F>where
F: Float + Debug,
StandardNormal: Distribution<F>,
Exp1: Distribution<F>,
Open01: Distribution<F>,
source§impl<F> Distribution<F> for FisherF<F>
impl<F> Distribution<F> for FisherF<F>
impl<F> Copy for FisherF<F>where
F: Float + Copy,
StandardNormal: Distribution<F>,
Exp1: Distribution<F>,
Open01: Distribution<F>,
Auto Trait Implementations§
impl<F> RefUnwindSafe for FisherF<F>where
F: RefUnwindSafe,
impl<F> Send for FisherF<F>where
F: Send,
impl<F> Sync for FisherF<F>where
F: Sync,
impl<F> Unpin for FisherF<F>where
F: Unpin,
impl<F> UnwindSafe for FisherF<F>where
F: UnwindSafe,
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