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)
.
§Plot
The plot shows the F-distribution with various values of m
and n
.
§Example
use rand_distr::{FisherF, Distribution};
let f = FisherF::new(2.0, 32.0).unwrap();
let v = f.sample(&mut rand::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<'de, F> Deserialize<'de> for FisherF<F>where
F: Float + Deserialize<'de>,
StandardNormal: Distribution<F>,
Exp1: Distribution<F>,
Open01: Distribution<F>,
impl<'de, F> Deserialize<'de> for FisherF<F>where
F: Float + Deserialize<'de>,
StandardNormal: Distribution<F>,
Exp1: Distribution<F>,
Open01: Distribution<F>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<F> Distribution<F> for FisherF<F>
impl<F> Distribution<F> for FisherF<F>
Source§impl<F> PartialEq for FisherF<F>where
F: Float + PartialEq,
StandardNormal: Distribution<F>,
Exp1: Distribution<F>,
Open01: Distribution<F>,
impl<F> PartialEq for FisherF<F>where
F: Float + PartialEq,
StandardNormal: Distribution<F>,
Exp1: Distribution<F>,
Open01: Distribution<F>,
Source§impl<F> Serialize for FisherF<F>where
F: Float + Serialize,
StandardNormal: Distribution<F>,
Exp1: Distribution<F>,
Open01: Distribution<F>,
impl<F> Serialize for FisherF<F>where
F: Float + Serialize,
StandardNormal: Distribution<F>,
Exp1: Distribution<F>,
Open01: Distribution<F>,
impl<F> Copy for FisherF<F>where
F: Float + Copy,
StandardNormal: Distribution<F>,
Exp1: Distribution<F>,
Open01: Distribution<F>,
impl<F> StructuralPartialEq for FisherF<F>
Auto Trait Implementations§
impl<F> Freeze for FisherF<F>where
F: Freeze,
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